CalPsGetVoltage

Purpose

Returns the voltage that is being generated by a channel.

Syntax

CalPsGetVoltage (hHandle, nChannel, pdVoltage, plStatus)

Parameters

Name
Type
Comments
hHandle
LONG
Handle for a Power Supply.
nChannel
SHORT
Select which channel to retrieve (0-based).
pdVoltage
PDOUBLE
Returns the real-time voltage read back for a channel in units of Volts.
plStatus
PLONG
Returned status: 0 on success, negative number on failure.

Comments

This function gets a channel’s real-time voltage read back in Volts.

Example

The following example gets the channel 0 real-time voltage read back:

 

LONG   lHandle, lStatus;

DOUBLE dVoltage;

 

CalPsGetVoltage (lHandle, 0, &dVoltage, &lStatus);

 

See Also

CalPsSetVoltage, CalPsGetCurrent, CalPsGetCurrentLimit, CalPsSetCurrentLimit, CalPsGetError