Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 5-41
Programming Examples for C++ Users
Stress Force
ret = hp4156b_force(vi, low, hp4156b_VF_MODE, range, vlout, ilcomp, 0); /* 27 */
ret = hp4156b_force(vi, t1, hp4156b_VF_MODE, range, bias, icomp, 0);
ret = hp4156b_force(vi, t2, hp4156b_VF_MODE, range, bias, icomp, 0);
ret = hp4156b_spotMeas(vi,t1, hp4156b_IM_MODE, range, &md[0], &st[0]);
ret = hp4156b_spotMeas(vi,t2, hp4156b_IM_MODE, range, &md[1], &st[1]);
ret = hp4156b_zeroOutput(vi, hp4156b_CH_ALL);
check_err (vi, ret);
printf("Data before stress:\n"); /* 35 */
printf("T1 current = %8.5f [mA], Status = %d \n", md[0] * 1000, st[0]);
printf("T2 current = %8.5f [mA], Status = %d \n", md[1] * 1000, st[1]);
printf("\n");
ret = hp4156b_setStress(vi, hold, hp4156b_STT_TIME, duration, period); /* 40 */
check_err (vi, ret);
ret = hp4156b_force(vi, low, hp4156b_VF_MODE, range, vlout, ilcomp, 0);
ret = hp4156b_addStressSyncIv(vi, 1, t1, 2, range, base, stress, icomp);
check_err (vi, ret);
ret = hp4156b_addStressSyncIv(vi, 2, t2, 2, range, base, stress, icomp);
check_err (vi, ret);
printf("Stress force in progress: %3.1f [V], %3.1f [sec]\n", stress, duration);
printf("\n");
ret = hp4156b_stress(vi, &status); /* 51 */
check_err (vi, ret);
ret = hp4156b_clearStressSync(vi);
Line Description
27 to 32 Applies voltage to device, performs spot measurement, and sets the specified port
to the zero output state.
35 to 38 Displays the measurement result data.
40 Sets the stress source timing parameters.
42 Applies voltage to the low terminal of the device.
43 and 45 Sets the stress source outputs.
51 Applies stress to the device.
54 Clears the stress source setup information.
33, 41, 44, 46,
and 52
Calls the check_err subprogram (shown in Table 5-1) to check if an error status is
returned for the previous line.