CalPsSetVoltage

Purpose

Sets the voltage that is being generated by a channel.

Syntax

CalPsSetVoltage (hHandle, nChannel, dVoltage, plStatus)

Parameters

Name
Type
Comments
hHandle
LONG
Handle for a Power Supply.
nChannel
SHORT
Select which channel to retrieve (0-based).
dVoltage
DOUBLE
Sets the voltage setting in units of Volts.
plStatus
PLONG
Returned status: 0 on success, negative number on failure.

Comments

This function sets a channel’s voltage in units of Volts.

Example

The following example sets the channel 0 voltage to 18 Volts:

 

LONG   lHandle, lStatus;

 

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

 

See Also

CalPsGetVoltage, CalPsGetCurrent, CalPsGetCurrentLimit, CalPsSetCurrentLimit, CalPsGetError