Sets the output level of static digital channels.
GX1632e
GxAoDioSetData (nHandle, nDioGroup, dwOutputData, 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 |
dwOutputData |
DWORD |
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 control digital channels operated by software which are static and do not make used of memory for playback. A digital channels set to input will not be affected by this command.
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 causes the card to write a high output level to every other channel:
SHORT nStatus;
GxAoDioSetData (nHandle, 0xAAAAAAAA, &nStatus)
GxAoDioGetData, GxAoDioGetDirection, GxAoDioSetDirection, GxAoGetErrorString