Returns the specified channel’s state (Standby/On).
GxPsSetStandby (nHandle, nChannel, bStdby, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
nChannel |
SHORT |
Specifies the Channel number:1 – Channel A2 – Channel B |
nStdby |
SHORT |
Operation to perform.0. The channel is in “On” mode.1. The channel is in “Standby” mode. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
In Standby mode, board voltages and current limits can be set; however, outputs are disconnected.
The following example returns the standby status of channel A.
SHORT nHandle, nStatus, nStdby;
GxPsGetStandby (nHandle, 1, &nStdby, &nStatus);