Returns the level of static digital channels.
GX1632e
GxAoDioGetData (nHandle, nDioGroup, pdwData, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1632e board. |
nDioGroup |
SHORT |
Specifies the DIO group. Model dependent.GX1632e:0. GXAO_1632_DIO_CH0_31. GXAO_1632_DIO_CH4_7 |
pdwData |
PDWORD |
Digital double word value: 0-0xFFFFFFFF. Where bit 0 corresponds to channel 0 and bit 31 to channel 31. See comments for card limitations. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This API is used to query digital channels operated by software which are static and do not make used of memory for playback. This channel will read back the digital level of channels in both input and output
This command supports up to 32 digital channels, but individual board capabilities will limit the number of channels available.
The GX1632e has digital channels 0 to 7 organized into 2 groups of 4 channels.
The following example reads back the input and output data of all channels:
SHORT nStatus;
DWORD dwData;
GxAoDioGetData (nHandle, GXAO_1632_DIO_CH0_3, &dwData, &nStatus)
GxAoDioGetDirection, GxAoDioSetData, GxAoDioSetDirection, GxAoGetErrorString