GxPsGetCurrent

Purpose

Returns the specified channel’s current.

Syntax

GxPsGetCurrent (nHandle, nChannel, pdCurrent, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
GX7400 slot number.
nChannel
SHORT
Specifies the Channel number from which to get the current:
1 – channel A
2 – channel B
pdCurrent
LPDOUBLE
Returned current.
Programmable 0-15V: 0.00A-10.00A
Programmable 0-30V: 0.00A-5.00A
Programmable 0-60V: 0.00A-2.5A
Fixed Module: The measured current at the sense lines.
  pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

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.

Example

The following example returns the current from channel A.

 

SHORT nHandle, nStatus;

DOUBLE dCurrent;

GxPsGetCurrent (nHandle, 1, &dCurrent, &nStatus);

 

See Also

GxPsGetVoltage, GxPsGetCurrentLimit, GxPsSetCurrentLimit, GxPsGetErrorString