GX3104
Sets the specified channel’s current settings when in constant voltage mode.
GxSmuSourceSetCurrentLimits (nHandle, nChannel, dCurrentLimit, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX3104 board. |
nChannel |
SHORT |
Specifies the channel number (0-3):GX3104_CHANNEL_1GX3104_CHANNEL_2GX3104_CHANNEL_3GX3104_CHANNEL_4 |
dCurrentLimitSource |
DOUBLE |
Sets the specified channel’s current settings, the range for each current range is as follows:0. GX3104_SOURCE_CURRENT_RANGE_1000MA: Source Current Range -+/-1000mA. Supported by channel 1 only, channels 2-4 can be set up to +/-500mA.1. GX3104_SOURCE_CURRENT_RANGE_250MA: Source Current Range -+/-250mA2. GX3104_SOURCE_CURRENT_RANGE_25MA: Source Current Range -+/-25mA (default after reset).3. GX3104_SOURCE_CURRENT_RANGE_2500UA: Source Current Range -+/-2.5mA4. GX3104_SOURCE_CURRENT_RANGE_250UA: Source Current Range -+/-250uA5. GX3104_SOURCE_CURRENT_RANGE_25UA: Source Current Range -+/-25uA6. GX3104_SOURCE_CURRENT_RANGE_2500NA: Source Current Range -2.5uA to -1uA, and 1uA to 2.5uA |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function sets the specified channel’s current settings. The current value is in mA.
The following example sets channel 1 current limit settings:
SHORT nStatus;
DOUBLE dCurrentLimit;
GxSmuSourceSetCurrentLimit (nHandle, GX3104_CHANNEL_1, 2.5, &nStatus);
GxSmuSourceSetCurrent, GxSmuSourceGetCurrentLimit, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceSetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceSetVoltage, GxSmuSourceSetVoltageLimit, GxSmuGetErrorString