GxPsGetVoltage

Purpose

Returns the specified channel’s voltage.

Syntax

GxPsGetVoltage (nHandle, nChannel, pdVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
GX7400 slot number.
nChannel
SHORT
Specifies the Channel from which to get the voltage:
1 – Channel A
2 – Channel B
pdVoltage
LPDOUBLE
Returned voltage.
Programmable 0-15V:
0.00V-15.00V
Programmable 0-30V:
    0.00V-30.00V
Programmable 0-60V:
    0.00V-60.00V
Fixed Module: The measured voltage 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 voltage is 0.

Programmable modules current resolution is:

0-15V module: 0.915 mV/step

0-30V module: 1.83 mV/step

0-60V module: 3.66 mA/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 voltage from channel A.

 

SHORT nHandle, nStatus;

DOUBLE dVoltage;

GxPsGetVoltage (nHandle, 1, &dVoltage, &nStatus);

 

See Also

GxSpSetVoltage, GxPsGetCurrentLimit, GxPsGetCurrent, GxPsSetCurrentLimit, GxPsGetErrorString, GxPsInitialize