Check_Err Vi, Ret - Agilent Technologies B1500A User Manual

Semiconductor device analyzer
Hide thumbs Also See for B1500A:
Table of Contents

Advertisement

Table 4-6
Table 4-6 uses the agb1500_setSweepSync function to perform MOSFET Id-Vg
measurement.
Staircase Sweep Measurement Example 2
void perform_meas (ViSession vi, ViStatus ret)
{
ViInt32
drain =
ViInt32
gate =
ViInt32
source =
ViInt32
bulk =
ViReal64
vd =
ViReal64
vg =
ViReal64
idcomp =
ViReal64
igcomp =
ViReal64
hold =
ViReal64
delay =
ViReal64
s_delay =
ViReal64
pdcomp =
ViReal64
pgcomp =
ViInt32
nop =
ViInt32
rep;
ViReal64
sc[11];
ViReal64
md[11];
ViInt32
st[11];
ViReal64
tm[11];
ViInt32
i;
ViChar
f_name[] = "C:\\Agilent\\ex\\data2.txt";
ViChar
head1[] = "Vg (V),
ViChar
msg1[] = "Saving data...";
ViChar
msg2[] = "Data save completed.";
ViChar
c = '\n';
ret = agb1500_setSwitch(vi, drain, 1);
ret = agb1500_setSwitch(vi, gate, 1);
ret = agb1500_setSwitch(vi, source, 1);
ret = agb1500_setSwitch(vi, bulk, 1);
check_err (vi, ret);
Line
1
Beginning of the perform_meas subprogram.
4 to 31
Declares variables, and defines the value.
33 to 36
Enables measurement channels.
37
Calls the check_err subprogram (shown in Table 4-1) to check if
an error status is returned for the previous line.
Agilent B1500 VXIplug&play Driver User's Guide, Edition 3
Programming Examples for C++ Users
Staircase Sweep Measurement
1;
/* SMU1 */
2;
/* SMU2 */
4;
/* SMU4 */
6;
/* SMU6 */
3;
3;
0.05;
0.01;
0;
0;
0;
0;
0;
11;
Id (mA), Time (sec), Status";
Description
/* 1 */
/* 4 */
/* 31 */
/* 33 */
/* 37 */
4-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents