User`s guide
Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3 2-67
Driver Functions
agb1500_stopMode
ViReal64 range[2]; /* measurement range */
mode[0] = 1;  /* current for 1st measurement channel */
mode[1] = 1;  /* current for 2nd measurement channel */
range[0] = 0;  /* auto for 1st measurement channel */
range[1] = 0;  /* auto for 2nd measurement channel */
ret = agb1500_startMeasure(vi, type, mch, mode, range, 0, 0, 0);
ViInt32 eod; /* eod */
ViInt32 dtype; /* data type */
ViReal64 md; /* measurement value */
ViInt32 st; /* measurement status */
ViInt32 ch; /* channel */
ret = agb1500_readData(vi, &eod, &dtype, &md, &st, &ch);
printf("I1 = %9.6f mA \n", md * 1000);
ret = agb1500_readData(vi, &eod, &dtype, &md, &st, &ch);
printf("I2 = %9.6f mA \n", md * 1000);
agb1500_stopMode
This function enables or disables the automatic measurement abort function, and 
specifies the post measurement output value. This function is available for the 
staircase sweep, pulsed sweep, staircase sweep with pulsed bias, multi channel 
sweep, CV sweep, and sampling measurements.
The abort function automatically stops measurement if a SMU oscillates, a source 
channel reaches its compliance, a measurement value exceeds the specified 
measurement range, or the MFCMU causes the NULL loop unbalance condition, 
the IV amplifier saturation condition, or the ADC overflow condition.
If measurement ends normally, the source applies the value specified by the 
last_mode parameter. If measurement ends by the automatic abort function, the 
agb1500_abortMeasure function, the AB command, or power compliance, the 
source applies the start or base value regardless of the last_mode setting. 
After the pulsed sweep measurement, the pulse sweep source applies the pulse base 
value regardless of the last_mode setting.
Syntax ViStatus _VI_FUNC agb1500_stopMode(ViSession vi, ViInt32 stop, 
ViInt32 last_mode);
Parameters vi  Instrument handle returned from agb1500_init( ).
stop  Automatic abort function. 0 (disable) or 1 (enable).
last_mode  Output after measurement. 1 (start value or base value) or 2 
(stop value or bias value).










