Returns the specified channel’s current.
GxPsGetCurrent (nHandle, nChannel, pdCurrent, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
nChannel |
SHORT |
Specifies the Channel number from which to get the current:1 – channel A2 – channel B |
pdCurrent |
LPDOUBLE |
Returned current.Programmable 0-15V: 0.00A-10.00AProgrammable 0-30V: 0.00A-5.00AProgrammable 0-60V: 0.00A-2.5AFixed Module: The measured current at the sense lines. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
If the specified channel is in standby mode, the returned current is 0.
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.
The following example returns the current from channel A.
SHORT nHandle, nStatus;
DOUBLE dCurrent;
GxPsGetCurrent (nHandle, 1, &dCurrent, &nStatus);
GxPsGetVoltage, GxPsGetCurrentLimit, GxPsSetCurrentLimit, GxPsGetErrorString