Returns the current limit that has been set for a channel.
CalPsGetCurrentLimit (hHandle, nChannel, pdCurrentLimit, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a Power Supply. |
nChannel |
SHORT |
Select which channel to retrieve (0-based). |
pdCurrentLimit |
PDOUBLE |
Returns the channel’s current limit level in units of Amps. |
plStatus |
PLONG |
Returned status: 0 on success, negative number on failure. |
This function gets a channel’s current limit. This setting limits the current that can be generated for a given voltage. The power supply will not exceed this current limit.
The following example gets the channel 0 current limit:
LONG lHandle, lStatus;
DOUBLE dCurrentLimit;
CalPsGetCurrentLimit (lHandle, 0, &dCurrentLimit, &lStatus);