EasyManuals 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 #191 background imageLoading...
Page #191 background image
Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 5-9
Programming Examples for C++ Users
Multi-Channel Spot Measurements
Multi-Channel Spot Measurements
This section explains an example subprogram that performs multi channel spot
measurement. The following subprogram will apply voltage to a bipolar transistor,
measure Ic and Ib, calculate hfe value, and display the measurement result data.
Table 5-3 Multi-Channel Spot Measurement Example
void perform_meas (ViSession vi, ViStatus ret) /* 1 */
{
ViInt32 emitter; /* 3 */
ViInt32 base;
ViInt32 collector;
emitter = 1; /* SMU1 */
base = 2; /* SMU2 */
collector = 4; /* SMU4 */ /* 8 */
ret = hp4156b_setSwitch(vi, emitter, 1); /* 10 */
ret = hp4156b_setSwitch(vi, base, 1);
ret = hp4156b_setSwitch(vi, collector, 1);
check_err (vi, ret); /* 13 */
ViReal64 vc; /* 15 */
ViReal64 vb;
ViReal64 iccomp;
ViReal64 ibcomp;
vc = 3;
iccomp = 0.1;
vb = 0.7;
ibcomp = 0.01;
ViInt32 mch[3];
ViInt32 mode[2];
ViReal64 range[2];
ViReal64 md[2];
ViInt32 st[2]; /* 29 */
Line Description
1 Beginning of the perform_meas subprogram.
3 to 8 Declares variables, and defines the value.
10 to 12 Enables measurement channels.
13 Calls the check_err subprogram (shown in Table 5-1) to check if
an error status is returned for the previous line.
15 to 29 Declares variables, and defines the value.

Table of Contents

Other manuals for Agilent Technologies 4156C

Questions and Answers:

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

Related product manuals