GX3104
Ramping the voltage and current limit settings both gradually over the specified time, in order to prevent over/under shoot of the channel’s output voltage.
GxSmuSourceSetVoltage (nHandle, nChannel, dVoltage, dCurrentLimit, dRampTimeInMiliSec, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX3104 board. |
nChannel |
SHORT |
GX3104: Specifies the channel number (0-3): GX3104_CHANNEL_1 to GX3104_CHANNEL_4 |
dVoltage |
DOUBLE |
Sets the specified channel’s voltage settings when in constant voltage mode. Voltage range is -20.0V to +20.0V. |
dCurrentLimit |
DOUBLE |
Sets the specified channel’s current limit, 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 +/-500mA1. 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 |
dRampTimeInMiliSec |
DOUBLE |
Sets the specified ramp time in mSec, value can be 0 mSec to 4000 mSec.Passing a 0, will set the current limit & voltage at once. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function applies the specified channel’s voltage and current limit settings when in constant voltage mode. The function ramps up/down the specified Voltage and Current Limit values gradually over the specified time ramp. The ramp time is in time in mSec.
While setting the both voltage and current limit, there might be excessive over/under shoot voltages depending on the DUT characteristics. In order to reduce those over/under shoot voltages, this function allows the user to set the output voltages and current limit gradually over the user specified time. The function intended to help the user better tailor the channel’s voltage DUT response, and will require a trial and error in order to find the best ramp time and the transition current range.
The following example sets channel 1 current range to +/-250mA, voltage to +10V, current limit to 200mA,in 10 mSec:
SHORT nStatus;
GxSmuSourceSetCurrentRange (nHandle, GX3104_CHANNEL_1, GX3104_SOURCE_CURRENT_RANGE_250MA, &nStatus);
GxSmuSourceSetVoltageAndCurrentLimitRamp(nHandle, GX3104_CHANNEL_1, 10.0, 200.0, 10, &nStatus);
GxSmuSourceSetCurrent, GxSmuSourceSetCurrentLimit, GxSmuSourceSetCurrentClamps, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceSetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceGetVoltage, GxSmuSourceSetVoltageLimit, GxSmuSourceSetVoltageClamps, GxSmuGetErrorString