Sets the specified channel’s voltage.
GxPsSetVoltage (nHandle, nChannel, dVoltage, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
nChannel |
SHORT |
Specifies the Channel for which to set the voltage:1 – Channel A2 – Channel B |
dVoltage |
DOUBLE |
Voltage.Programmable 0-15V:0.00V-15.00VProgrammable 0-30V:0.00V-30.00VProgrammable 0-60V:0.00V-60.00V |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
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.
This function is not supported by fixed modules.
The following example sets the voltage in Channel A to 3.42 volts.
SHORT nHandle, nStatus;
GxPsSetVoltage (nHandle, 1, 3.42, &nStatus);
GxPsSetVoltageAndWaitUntilReady, GxPsGetVoltage, GxPsSetCurrentLimit, GxPsGetCurrent, GxPsGetCurrentLimit, GxPsGetErrorString, GxPsInitialize