Returns the direction of static digital channels.
GX1632e
GxAoDioGetDirection (nHandle, nDioGroup, pdwDirection, 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 |
pdwDirection |
PDWORD |
The specified group’s direction. Model dependent.GX1632e:0. GXAO_1632_DIO_DIRECTION_OUTPUT1. GXAO_1632_DIO_DIRECTION_INPUT |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example gets the direction of the low channels:
SHORT nStatus
DWORD dwLow;
GxAoDioGetDirection (nHandle, GXAO_1632_DIO_CH0_3, &dwLow, &nStatus);
GxAoDioGetData, GxAoDioSetData, GxAoDioSetDirection, GxAoGetErrorString