Returns the voltage that is being generated by a channel.
CalPsGetVoltage (hHandle, nChannel, pdVoltage, plStatus)
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. |
This function gets a channel’s real-time voltage read back in Volts.
The following example gets the channel 0 real-time voltage read back:
LONG lHandle, lStatus;
DOUBLE dVoltage;
CalPsGetVoltage (lHandle, 0, &dVoltage, &lStatus);
CalPsSetVoltage, CalPsGetCurrent, CalPsGetCurrentLimit, CalPsSetCurrentLimit, CalPsGetError