Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 2-41
Driver Function Reference
hp4156b_stopMode
ret= hp4156b_force(vi, mch[1], om, or, v1, ic, 0);
ViInt32 type = 3; /* pulsed spot measurement */
ViInt32 mode[2]; /* measurement mode */
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 = hp4156b_startMeasure(vi, type, mch, mode, range, 0);
ViInt32 eod; /* eod */
ViInt32 dtype; /* data type */
ViReal64 md; /* measurement value */
ViInt32 st; /* measurement status */
ViInt32 ch; /* channel */
ret = hp4156b_readData(vi, &eod, &dtype, &md, &st, &ch);
printf("I1 = %9.6f mA \n", md * 1000);
ret = hp4156b_readData(vi, &eod, &dtype, &md, &st, &ch);
printf("I2 = %9.6f mA \n", md * 1000);
hp4156b_stopMode
This function specifies the stop condition which enables the automatic abort
function for the sweep measurement, sampling measurement, or stress force. Also
this function specifies the sweep source output of the measurement unit after the
sweep measurement is aborted.
Syntax ViStatus _VI_FUNC hp4156b_stopMode(ViSession vi, ViInt32 occ_stop,
ViInt32 tcc_stop, ViInt32 ovf_stop, ViInt32 osc_stop, ViInt32 last_mode);
Parameters vi Instrument handle returned from hp4156b_init( ).
occ_stop Automatic abort function by compliance of another unit.
0 (disables this abort mode) or 1 (enables this abort mode).
tcc_stop Automatic abort function by compliance of this unit.
0 (disables this abort mode) or 1 (enables this abort mode).
ovf_stop Automatic abort function by overflow of AD converter.
0 (disables this abort mode) or 1 (enables this abort mode).
osc_stop Automatic abort function by oscillation of unit(s).
0 (disables this abort mode) or 1 (enables this abort mode).
last_mode Source output value after abort condition.
1 (returns to start value), or 2 (keeps the value when aborted).