Sets the voltage that is being generated by a channel.
CalPsSetVoltage (hHandle, nChannel, dVoltage, plStatus)
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. |
This function sets a channel’s voltage in units of Volts.
The following example sets the channel 0 voltage to 18 Volts:
LONG lHandle, lStatus;
CalPsGetVoltage (lHandle, 0, 18.0, &lStatus);
CalPsGetVoltage, CalPsGetCurrent, CalPsGetCurrentLimit, CalPsSetCurrentLimit, CalPsGetError