Returns the specified channel TTL Port value.
Gx5641GetChannelTTLPort (nHandle, nChannel, pbData, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5641 board. |
nChannel |
SHORT |
Channel range is: GX5641_FIRST_CHANNEL (0) to GX5641_LAST_CHANNEL (63). |
pbData |
PBOOL |
TTL Port value:0. Logic low1. Logic high |
pnStatus
|
PSHORT |
Returned status: 0 on success, negative number on failure. |
For protection, by default all channels are disabled after power-up and reset. The channels can be enabled and or disabled by calling Gx5641SetChannelOutputState.
The following example returns channel 0 TTL Port value:
BOOL bData;
Gx5641GetChannelTTLPort (nHandle, 0, &bData, &nStatus);