GxAoDioGetStatus

Purpose

Returns the DIO sequencer status.

Applies

GX1649, GX1649-1

Syntax

GxAoDioGetStatus (nHandle, pdwStatus, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1649 board.
pdwStatus
PDWORD
Returned the status of the DIO:
Bit 0: DIO Sequencer is Running
Bit 1: DIO Sequencer is Armed and ready for start trigger
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example checks if the DIO is running

 

DWORD dwStatus;

 

GxAoDioGetStatus(nHandle, &dwStatus, &nStatus);

if ((dwStatus & 0x1)==1) printf(“DIO is running”);

 

See Also

GxAoDioArm, GxAoDioTrig, GxAoGetErrorString