Returns the specified channel’s voltage.
GxPsGetVoltage (nHandle, nChannel, pdVoltage, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
nChannel |
SHORT |
Specifies the Channel from which to get the voltage:1 – Channel A2 – Channel B |
pdVoltage |
LPDOUBLE |
Returned voltage.Programmable 0-15V:0.00V-15.00VProgrammable 0-30V:0.00V-30.00VProgrammable 0-60V:0.00V-60.00VFixed Module: The measured voltage 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 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.
The following example returns the voltage from channel A.
SHORT nHandle, nStatus;
DOUBLE dVoltage;
GxPsGetVoltage (nHandle, 1, &dVoltage, &nStatus);
GxSpSetVoltage, GxPsGetCurrentLimit, GxPsGetCurrent, GxPsSetCurrentLimit, GxPsGetErrorString, GxPsInitialize