CalPsGetCurrent

Purpose

Returns the current that is being generated by a channel.

Syntax

CalPsGetCurrent (hHandle, nChannel, pdCurrent, plStatus)

Parameters

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.

Comments

This function gets a channel’s real-time current read back in Amps.

Example

The following example gets the channel 0 real-time current read back:

 

LONG   lHandle, lStatus;

DOUBLE dCurrent;

 

CalPsGetCurrent (lHandle, 0, &dCurrent, &lStatus);

 

See Also

CalPsGetCurrentLimit, CalPsSetCurrentLimit, CalPsGetError