Returns the on/off state of a channel.
CalPsGetChannelState (hHandle, nChannel, penChannelState, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a Power Supply. |
nChannel |
SHORT |
Select which channel to retrieve (0-based). |
penChannelState |
LONG |
The Row coordinate of the relay in the matrix to close:0. aPsChannelOn – Turn the channel On.1. aPsChannelStandby – Turn the channel Off. |
plStatus |
PLONG |
Returned status: 0 on success, negative number on failure. |
This function gets the state of a power supply channel. Channel must be turned on in order to generate voltage and current.
The following example gets the channel 0 state:
LONG lHandle, lStatus, lChannelState;
CalPsGetChannelState (lHandle, 0, &lChannelState, &lStatus);
CalPsSetChannelState, CalPsGetError