Sets the current limit that has been set for a channel.
CalPsSetCurrentLimit (hHandle, nChannel, dCurrentLimit, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a Power Supply. |
nChannel |
SHORT |
Select which channel to retrieve (0-based). |
dCurrentLimit |
DOUBLE |
Sets the channel’s current limit level in units of Amps. |
plStatus |
PLONG |
Returned status: 0 on success, negative number on failure. |
This function sets 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 sets the channel 0 current limit to 5 Amps:
LONG lHandle, lStatus;
CalPsGetCurrentLimit (lHandle, 0, 5.0, &lStatus);