GxSmuSourceGetVoltage

Applies To

GX3104, GX3116e

Purpose

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

Syntax

GxSmuSourceGetVoltage (nHandle, nChannel, pdVoltage, 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. 
pdVoltage
PDOUBLE
Returns the specified channel’s voltage settings when in constant voltage mode.
GX3104: Voltage range is -20.0V to +20.0V.
GX3116e: 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.

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, GxSmuSourceSetVoltage, GxSmuSourceSetVoltageLimit, GxSmuGetErrorString