CalPsGetCurrentLimit

Purpose

Returns the current limit that has been set for a channel.

Syntax

CalPsGetCurrentLimit (hHandle, nChannel, pdCurrentLimit, plStatus)

Parameters

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.

Comments

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.

Example

The following example gets the channel 0 current limit:

 

LONG   lHandle, lStatus;

DOUBLE dCurrentLimit;

 

CalPsGetCurrentLimit (lHandle, 0, &dCurrentLimit, &lStatus);

 

See Also

CalPsSetCurrentLimit, CalPsGetCurrent, CalPsGetError