EasyManua.ls Logo

Agilent Technologies 4156C User Manual

Agilent Technologies 4156C
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #198 background imageLoading...
Page #198 background image
5-16 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Programming Examples for C++ Users
Synchronous Sweep Measurements
ret = hp4156b_force(vi, bulk, hp4156b_VF_MODE, 0, 0, 0.1, 0); /* 33 */
ret = hp4156b_force(vi, source, hp4156b_VF_MODE, 0, 0, 0.1, 0);
ret = hp4156b_setIv(vi, gate, hp4156b_SWP_VF_SGLLIN, 0, 0, vg, nop, hold, delay,
s_delay, igcomp, pgcomp);
check_err (vi, ret); /* 37 */
ret = hp4156b_setSweepSync(vi, drain, hp4156b_VF_MODE, 0, 0, vd, idcomp, pdcomp);
check_err (vi, ret);
ret = hp4156b_sweepIv(vi, drain, hp4156b_IM_MODE, 0, &rep, &sc[0], &md[0], &st[0]);
check_err (vi, ret); /* 43 */
ret = hp4156b_zeroOutput(vi, hp4156b_CH_ALL); /* 45 */
ret = hp4156b_setSwitch(vi, hp4156b_CH_ALL, 0);
check_err (vi, ret); /* 47 */
if ( rep != nop ) { /* 49 */
printf ("%d measurement steps were returned.\nIt must be %d steps.\n", rep, nop);
exit (ret);
} /* 52 */
printf(" Vg (V), Id (mA)\n"); /* 54 */
for (i = 0; i < nop; i++){
printf(" %4.2f, %9.6f \n", sc[i], md[i] * 1000);
} /* 57 */
Line Description
33 to 34 Applies voltage to device.
36 Sets the primary sweep source.
39 Sets the synchronous sweep source by using the hp4156b_setSweepSync function.
42 Performs staircase sweep measurement by using the hp4156b_sweepIv function.
45 Sets the specified port to the zero output state.
46 Disables all ports.
37, 40, 43, and 47 Calls the check_err subprogram (shown in Table 5-1) to check if an error status is
returned for the previous line.
49 to 52 Stops the program execution if the number of returned data is not equal to nop.
54 to 57 Displays the measurement result data.

Table of Contents

Other manuals for Agilent Technologies 4156C

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 4156C and is the answer not in the manual?

Agilent Technologies 4156C Specifications

General IconGeneral
BrandAgilent Technologies
Model4156C
CategoryMeasuring Instruments
LanguageEnglish

Summary

1 Installation

System Requirements

Specifies the necessary software and hardware environments for using the VXIplug&play driver.

Installing VXIplug&play Driver

Provides step-by-step instructions for installing the VXIplug&play driver for the instruments.

2 Driver Function Reference

4155/4156 Driver Functions

Details the functions available for controlling the Agilent 4155/4156 VXIplug&play driver.

E5250A Driver Functions

Details the functions available for controlling the Agilent E5250A VXIplug&play driver.

6 Programming Examples for VEE Users

Registrating the Driver on Agilent VEE

Details the process of registering the VXIplug&play driver within the Agilent VEE environment.

Related product manuals