Sets the specified channel’s current limit.
GxPsSetCurrentLimit (nHandle, nChannel, dCurrentLimit, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
nChannel |
SHORT |
Specifies the Channel for which the current limit is to be set:1 – Channel A2 – Channel B |
dCurrentLimit |
DOUBLE |
Current to be set.Programmable 0-15V:0.00A-10.00AProgrammable 0-30V:0.00A-5.00AProgrammable 0-60V:0.00A-2.5A |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
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.
The following example sets the current limit to Channel B to 2 amps.
SHORT nHandle, nStatus;
GxPsSetCurrentLimit (nHandle, 2, 2.0, &nStatus);
GxPsGetCurrentLimit, GxPsGetVoltage, GxPsGetCurrent, GxSpSetVoltage, GxPsGetErrorString, GxPsInitialize