Returns the current that is being generated by a channel.
CalPsGetCurrent (hHandle, nChannel, pdCurrent, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a Power Supply. |
nChannel |
SHORT |
Select which channel to retrieve (0-based). |
pdCurrent |
PDOUBLE |
Returns the real-time current read back for a channel in units of Amps. |
plStatus |
PLONG |
Returned status: 0 on success, negative number on failure. |
This function gets a channel’s real-time current read back in Amps.
The following example gets the channel 0 real-time current read back:
LONG lHandle, lStatus;
DOUBLE dCurrent;
CalPsGetCurrent (lHandle, 0, &dCurrent, &lStatus);