GxPsSetCurrentLimit

Purpose

Sets the specified channel’s current limit.

Syntax

GxPsSetCurrentLimit (nHandle, nChannel, dCurrentLimit, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
GX7400 slot number.
nChannel
SHORT
Specifies the Channel for which the current limit is to be set:
1 – Channel A
2 – Channel B
dCurrentLimit
DOUBLE
Current to be set.
Programmable 0-15V:
0.00A-10.00A
Programmable 0-30V:
    0.00A-5.00A
Programmable 0-60V:
    0.00A-2.5A
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

Programmable modules current resolution is:

0-15V module: 76.75  µA/step, 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.

This function is not supported by fixed modules.

Example

The following example sets the current limit to Channel B to 2 amps.

 

SHORT nHandle, nStatus;

GxPsSetCurrentLimit (nHandle, 2, 2.0, &nStatus);

 

See Also

GxPsGetCurrentLimit, GxPsGetVoltage, GxPsGetCurrent, GxSpSetVoltage, GxPsGetErrorString, GxPsInitialize