GxSmuSourceSetCurrentClamps

Applies To

GX3116e

Purpose

Sets the specified channel’s current clamps source and sink settings when in constant voltage mode.

Syntax

GxSmuSourceSetCurrentClamps (nHandle, nChannel, dCurrentClampSource, dCurrentLimitSink, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX3116e board.
nChannel
SHORT
Specifies the channel number (0-15):
GX3116_CHANNEL_1 - GX3116_CHANNEL_16  
dCurrentClampSource
DOUBLE
Sets the specified channel’s programmed current clamps source settings in mA when in constant voltage mode, according to the programmed current range.
0.      GX3116_SOURCE_CURRENT_RANGE_512MA: Source Current Range 75mA to 650mA
1.      GX3116_SOURCE_CURRENT_RANGE_25_POINT_6MA: Source Current Range 7.5mA yo 30mA (default)
2.    GX3116_SOURCE_CURRENT_RANGE_2_POINT_56MA: Source Current Range 1.0mA to 3.0mA
dCurrentClampSink
DOUBLE
Sets the specified channel’s programmed current clamps sink settings in mA when in constant voltage mode, according to the programmed current range.
0.      GX3116_SOURCE_CURRENT_RANGE_512MA: Source Current Range 75mA to 650mA
1.      GX3116_SOURCE_CURRENT_RANGE_25_POINT_6MA: Source Current Range 7.5mA to 30mA (default)
2.    GX3116_SOURCE_CURRENT_RANGE_2_POINT_56MA: Source Current Range 1.0mA to 3.0mA  
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.  

Comments

The function returns the Returns the specified channel’s programmed current clamps source and sink settings in mA when in constant voltage mode.

Example

The following example sets ch 1 current range to 512mA, sets current clamps and returns the specified channel’s programmed current clamps source and sink settings when in constant voltage mode:

 

SHORT nStatus;

DOUBLE dCurrentClampSource, dCurrentClampSink;

GxSmuSourceSetCurrentRange (nHandle, GX3116_CHANNEL_1, GX3116_SOURCE_CURRENT_RANGE_512MA, &nStatus);

GxSmuSourceSetCurrentClamps (nHandle, GX3116_CHANNEL_1, 200.0, 150.0, &nStatus);

GxSmuSourceGetCurrentClamps (nHandle, GX3116_CHANNEL_1, &dCurrentClampSource, &dCurrentClampSink, &nStatus);

 

See Also

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