GxSpSetVoltage

Purpose

Sets the specified channel’s voltage.

Syntax

GxPsSetVoltage (nHandle, nChannel, dVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
GX7400 slot number.
nChannel
SHORT
Specifies the Channel for which to set the voltage:
1 – Channel A
2 – Channel B
dVoltage
DOUBLE
Voltage.
Programmable 0-15V:
0.00V-15.00V
Programmable 0-30V:
    0.00V-30.00V
Programmable 0-60V:
    0.00V-60.00V
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

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.

Example

The following example sets the voltage in Channel A to 3.42 volts.

 

SHORT nHandle, nStatus;

GxPsSetVoltage (nHandle, 1, 3.42, &nStatus);

 

See Also

GxPsSetVoltageAndWaitUntilReady, GxPsGetVoltage, GxPsSetCurrentLimit, GxPsGetCurrent, GxPsGetCurrentLimit, GxPsGetErrorString, GxPsInitialize