Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3 4-13
Programming Examples for C++ Users
Staircase Sweep Measurement
Staircase Sweep Measurement
Table 4-5 explains an example subprogram that performs the staircase sweep
measurement. The following subprogram performs I-V measurement and save the
measurement results (MOSFET Id-Vd characteristics) into a file.
Table 4-5 Staircase Sweep Measurement Example 1
void perform_meas (ViSession vi, ViStatus ret) /* 1 */
{
ViInt32 drain = 1; /* SMU1 */ /* 4 */
ViInt32 gate = 2; /* SMU2 */
ViInt32 source = 4; /* SMU4 */
ViInt32 bulk = 6; /* SMU6 */
ViReal64 vd = 3;
ViReal64 vg = 3;
ViReal64 idcomp = 0.05;
ViReal64 igcomp = 0.01;
ViReal64 hold = 0;
ViReal64 delay = 0;
ViReal64 s_delay = 0;
ViReal64 p_comp = 0;
ViInt32 nop1 = 11;
ViInt32 nop2 = 3;
ViInt32 rep;
ViReal64 sc[33];
ViReal64 md[33];
ViInt32 st[33];
ViReal64 tm[33];
ViReal64 dvg[3];
ViInt32 i = 0;
ViInt32 j;
ViInt32 n;
ViChar f_name[] = "C:\\Agilent\\ex\\data1.txt";
ViChar head1[] = "Vg (V), Vd (V), Id (mA), Time (sec), Stat
us";
ViChar msg1[] = "Saving data...";
ViChar msg2[] = "Data save completed.";
ViChar c = ’\n’; /* 36 */
Line Description
1 Beginning of the perform_meas subprogram.
4 to 36 Declares variables, and defines the value.