Returns the channel’s state (Inhibit/Fail).
GxPsGetState (nHandle, nChannel, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
nChannel |
SHORT |
Specifies the Channel number:1 – Channel A2 – Channel B |
pnStatus |
LPSHORT |
Returned status is as follow:0. GT_NO_ERROR - If neither failed nor inhibited1. GXPS_CHANNEL_FAIL - Channel’s status is FAIL2. GXPS_CHANNEL_INHIBIT - Channel’s status is INHIBIT |
The following example gets channel A’s status.
SHORT nHandle, nStatus;
GxPsGetState (nHandle, 1, &nStatus);