Returns the digital output bit state.
GX1642, GX1648
GxAoGetPortBit (nHandle, pbHi, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1642 or GX1648 board. |
pbHi |
PBOOL |
Digital out bit line state: TRUE for high, FALSE for low. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example returns the Digital I/O line state:
SHORT nStatus;
BOOL bHi;
GxAoGetPortBit (nHandle, &bHi, &nStatus);