GxSmuSourceGetVoltageLimit

Applies To

GX3104

Purpose

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

Syntax

GxSmuSourceGetVoltageLimit (nHandle, nChannel, pdVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX3104 board.
nChannel
SHORT
Specifies the channel number (0-3):
GX3104_CHANNEL_1
GX3104_CHANNEL_2
GX3104_CHANNEL_3
GX3104_CHANNEL_4  
pdVoltage
PDOUBLE
Returns the specified channel’s voltage settings when in constant current mode. Voltage range is -20.0V to +20.0V.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function sets the specified channel’s voltage settings when in constant current 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 dVoltageLimit;

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

GxSmuSourceGetVoltageLimit (nHandle, GX3104_CHANNEL_1, &dVoltageLimit, &nStatus);

 

See Also

GxSmuSourceSetCurrent, GxSmuSourceSetCurrentLimit, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceSetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceSetVoltage, GxSmuSourceSetVoltageLimit, GxSmuGetErrorString