GxSmuSourceSetVoltageLimitArray

Applies To

GX3104

Purpose

Sets the specified array of channels voltage settings when in constant voltage mode.

Syntax

GxSmuSourceSetVoltageLimitArray (nHandle, nChannelListArraySize, panChannelListArray, dVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX3104 board.
nChannelListArraySize
SHORT
Specifies the number of channels in panChannelListArray. If nChannelListArraySize=-1, then panChannelListArray parameter is ignored (can be set to NULL) and settings will be applied to all the channels.
panChannelListArray
PSHORT
Array specifying the channels numbers to be set:
GX3104: 0 (GX3104_CHANNEL_1) to 3 GX3104_CHANNEL_4.
dVoltage
DOUBLE
Sets 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 0 and 2 voltage to +10V and returns the settings:

 

SHORT nStatus;

DOUBLE dVoltageLimit;

SHORT  anChannelListArray [2];

// Fill channel array

anChannelListArray [0] = 0;

anChannelListArray [1] = 2;

GxSmuSourceSetVoltageLimitArray (nHandle, 2, anChannelListArray, 10.0, &nStatus);

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

 

See Also

GxSmuSourceSetCurrent, GxSmuSourceSetCurrentLimit, GxSmuSourceSetCurrentClamps, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceSetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceSetVoltage, GxSmuSourceGetVoltageLimit, GxSmuGetErrorString