Sets the on/off state of a channel.
CalPsSetChannelState (hHandle, nChannel, nChannelState, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a Power Supply. |
nChannel |
SHORT |
Select which channel to set (0-based). |
nChannelState |
LONG |
The Channel state of change: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 sets the state of a power supply channel. The channel must be turned on in order to generate voltage and current.
The following example sets the channel 0 state to On:
LONG lHandle, lStatus;
CalPsSetChannelState (lHandle, 0, aPsChannelOn, &lStatus);