CalPsGetChannelState

Purpose

Returns the on/off state of a channel.

Syntax

CalPsGetChannelState (hHandle, nChannel, penChannelState, plStatus)

Parameters

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.

Comments

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

Example

The following example gets the channel 0 state:

 

LONG   lHandle, lStatus, lChannelState;

 

CalPsGetChannelState (lHandle, 0, &lChannelState, &lStatus);

 

See Also

CalPsSetChannelState, CalPsGetError