GxSmuSourceSetVoltage

Applies To

GX3104, GX3116e

Purpose

Sets the specified channel’s voltage settings when in constant voltage mode.

Syntax

GxSmuSourceSetVoltage (nHandle, nChannel, dVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX3104 or GX3116e board .
nChannel
SHORT
GX3104: Specifies the channel number (0-3): GX3104_CHANNEL_1 to GX3104_CHANNEL_4
GX3116e: Specifies channel number (0-15) is GX3116_CHANNEL_1 to GX3116_CHANNEL_16
dVoltage
DOUBLE
GX3104:
Sets the specified channel’s voltage settings when in constant voltage mode. Voltage range is -20.0V to +20.0V.
GX3116e:
Sets the specified channel’s voltage settings when in constant voltage mode. Voltage range is -2.0V to +10.5V .
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function sets the specified channel’s voltage settings when in constant voltage mode. The voltage range is -20.0V to +20.0V.

Example

The following example sets channel 1 voltage to +10V and returns the settings:

 

SHORT nStatus;

DOUBLE dVoltage;

GxSmuSourceSetVoltage (nHandle, GX3104_CHANNEL_1, 10.0, &nStatus);

GxSmuSourceGetVoltage (nHandle, GX3104_CHANNEL_1, &dVoltage, &nStatus);

 

See Also

GxSmuSourceSetCurrent, GxSmuSourceSetCurrentLimit, GxSmuSourceSetCurrentClamps, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceSetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceGetVoltage,  GxSmuSourceSetVoltageLimit, GxSmuSourceSetVoltageClamps, GxSmuGetErrorString