CalPsSetChannelState

Purpose

Sets the on/off state of a channel.

Syntax

CalPsSetChannelState (hHandle, nChannel, nChannelState, plStatus)

Parameters

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.

Comments

This function sets the state of a power supply channel. The channel must be turned on in order to generate voltage and current.

Example

The following example sets the channel 0 state to On:

 

LONG   lHandle, lStatus;

 

CalPsSetChannelState (lHandle, 0, aPsChannelOn, &lStatus);

 

See Also

CalPsGetChannelState, CalPsGetError