EasyManuals Logo
Home>Agilent Technologies>Measuring Instruments>B1500A

Agilent Technologies B1500A User Manual

Agilent Technologies B1500A
208 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 #180 background imageLoading...
Page #180 background image
4-24 Agilent B1500 VXIplug&play Driver Users Guide, Edition 3
Programming Examples for C++ Users
Multi Channel Sweep Measurement
ret = agb1500_setSwitch(vi, emitter, 1); /* 36 */
ret = agb1500_setSwitch(vi, base, 1);
ret = agb1500_setSwitch(vi, collector, 1);
check_err (vi, ret); /* 39 */
ret = agb1500_setAdc(vi, agb1500_HSPEED_ADC, agb1500_INTEG_MANUAL, smpl,
agb1500_FLAG_OFF);
ret = agb1500_setAdcType(vi, agb1500_CH_ALL, agb1500_HSPEED_ADC); /* 42 */
ret = agb1500_resetTimestamp(vi);
check_err (vi, ret); /* 45 */
ret = agb1500_force(vi, emitter, agb1500_VF_MODE, 0, ve, iecomp, 0); /* 47 */
ret = agb1500_force(vi, collector, agb1500_VF_MODE, 0, vc, iccomp, 0);
ret = agb1500_setIv(vi, base, agb1500_SWP_VF_SGLLIN, 0, vb1, vb2, nop, hold, delay,
s_delay, ibcomp, pcomp);
check_err (vi, ret); /* 50 */
ret = agb1500_sweepMiv(vi, mch, mode, range, &rep, &sc[0], &md[0], &st[0], &tm[0]);
check_err (vi, ret); /* 53 */
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL); /* 55 */
ret = agb1500_setSwitch(vi, agb1500_CH_ALL, 0);
check_err (vi, ret); /* 57 */
if ( rep != nop ) { /* 59 */
printf ("%d measurement steps were returned.\nIt must be %d steps.\n", rep, nop);
exit (ret);
}
Line Description
36 to 38 Enables measurement channels.
41 to 42 Sets the high speed ADC, and selects it for all measurement channels.
44 Resets time stamp.
47 to 49 Applies voltage to device, and sets the staircase sweep source.
52 Performs measurement by using the agb1500_sweepMiv function.
55 Sets the specified port to the zero output state.
56 Disables all ports.
39, 45, 50, 53,
and 57
Calls the check_err subprogram (shown in Table 4-1) to check if an error status is
returned for the previous line.
59 to 62 Stops the program execution if the number of returned data is not equal to the nop
value.

Table of Contents

Other manuals for Agilent Technologies B1500A

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies B1500A Specifications

General IconGeneral
BrandAgilent Technologies
ModelB1500A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals