Sets the specified channel’s voltage, and wait until the specified voltage is set.
GxPsSetVoltageAndWaitUntilReady (nHandle, nChannel, dVoltage, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
nChannel |
SHORT |
Specifies the Channel for which to set the voltage:1. GXPS_CHANNEL1: Channel 12. GXPS_CHANNEL2: Channel 2 |
dVoltage |
DOUBLE |
Voltage.
|
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
The function sets the specified channel’s voltage and wait for the specified voltage to be reached. The function may return with a warning (GXPS_SET_VOLTAGE_TIMEOUT) if the specified voltage cannot be set, e.g. low current limit will restrict the output voltage.
If the specified channel was in Standby (output disabled) while calling this function an internal flag will be set. The next time the channel’s output is enabled the driver will wait until the voltage is stable before returning.
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.
Not supported by fixed modules.
The following example sets the voltage in Channel A to 3.42 volts.
SHORT nHandle, nStatus;
GxPsSetVoltageAndWaitUntilReady (nHandle, GXPS_CHANNEL1, 3.42, &nStatus);
GxSpSetVoltage, GxPsGetVoltage, GxPsSetCurrentLimit, GxPsGetCurrent, GxPsGetCurrentLimit, GxPsSetStandby, GxPsGetStandby, GxPsGetErrorString, GxPsInitialize