EasyManua.ls Logo

Agilent Technologies B1500A

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
Loading...
Agilent B1500 VXIplug&play Driver Users Guide, Edition 3 4-41
Programming Examples for C++ Users
Sampling Measurement
Sampling Measurement
Table 4-14 explains example subprogram that performs sampling measurement.
This example measures current that flows to resistors R1 and R2, and then calculates
the resistance.
Table 4-14 Sampling Measurement Example
void perform_meas (ViSession vi, ViStatus ret) /* 1 */
{
ViInt32 t1 =3; /* SMU3 */
ViInt32 t2 =4; /* SMU4 */
ViInt32 low =1; /* SMU1 */
ViReal64 base =0;
ViReal64 bias =0.1;
ViReal64 icomp =0.1;
ViReal64 vlout =0;
ViReal64 ilcomp =0.1;
ViReal64 base_h =0;
ViReal64 bias_h =0.1;
ViReal64 interval =0.05;
ViInt32 nop =30;
ViInt32 mch[3];
ViInt32 mode[2];
ViReal64 range[2];
ViInt32 point;
ViInt32 index[30];
ViReal64 value[60];
ViInt32 status[60];
mch[0] =t1;
mch[1] =t2;
mch[2] =0;
mode[0] =1;
mode[1] =1;
range[0] =0;
range[1] =0; /* 28 */
Line Description
1 Beginning of the perform_meas subprogram.
3 to 28 Declares variables, and defines the value.

Table of Contents

Other manuals for Agilent Technologies B1500A

Related product manuals