GxSmuSourceResetChannelArray

Applies To

GX3104, GX3116e

Purpose

Resets the specified array of channels to default settings.

Syntax

GxSmuSourceResetChannelArray (nHandle, nChannelListArraySize, panChannelListArray, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX3104 or GX3116e 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.
GX3116e: 0 (GX3116_CHANNEL_1) to 15 GX3116_CHANNEL_16.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function the specified channel number as follows:

GX3104:

GX3116e:

Example

The following example resets channel 0 and 2:

 

SHORT  nHandle, nStatus;

SHORT  anChannelListArray [2];

// Fill channel array

anChannelListArray [0] = 0;

anChannelListArray [1] = 2;

 

GxSmuResetChannelArray (nHandle, 2, anChannelListArray, &nStatus);

 

See Also

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