GxPsGetCurrentLimit

Purpose

Returns the specified channel’s current limit.

Syntax

GxPsGetCurrentLimit (nHandle, nChannel, pdCurrentLimit, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
GX7400 slot number.
Channel
SHORT
Specifies the Channel for which to get the Current Limit:
1 – channel A
2 – channel B
pdCurrentLimit
LPDOUBLE
Returned current limit.
Programmable 0-30V:
    0.00A-5.00A
Programmable 0-60V:
     0.00A-2.5A
Fixed Module: The maximum rated current for the installed module.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

Programmable modules current resolution is:

0-30V module: 153.5 µA/step, 0-60V module: 305.1 µA/step.

If total power exceeds 150 W (maximum output power), output voltages will drop to satisfy the power limit.

Example

The following example gets the Current Limit from Channel B.

 

SHORT nHandle, nStatus;

DOUBLE dCurrentLimit;

GxPsGetCurrentLimit (nHandle, 2, &dCurrentLimit, &nStatus);

 

See Also

GxPsSetCurrentLimit, GxPsGetVoltage, GxPsGetCurrent, GxSpSetVoltage, GxPsGetErrorString, GxPsInitialize