Agilent Technologies B1500A User's Guide Page 176

  • Download
  • Add to my manuals
  • Print
  • Page
    / 208
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 175
4-20 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for C++ Users
Staircase Sweep Measurement
Table 4-7 uses the multi channel sweep measurement mode to perform the same
measurement as the previous example (Table 4-6, MOSFET Id-Vg measurement).
Table 4-7 Staircase Sweep Measurement Example 3
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 pdcomp = 0;
ViReal64 pgcomp = 0;
ViInt32 nop = 11;
ViInt32 rep;
ViReal64 sc[11];
ViReal64 md[11];
ViInt32 st[11];
ViReal64 tm[11];
ViInt32 i;
ViChar f_name[] = "C:\\Agilent\\ex\\data3.txt";
ViChar head1[] = "Vg (V), Id (mA), Time (sec), Status";
ViChar msg1[] = "Saving data...";
ViChar msg2[] = "Data save completed.";
ViChar c = ’\n’; /* 31 */
ret = agb1500_setSwitch(vi, drain, 1); /* 33 */
ret = agb1500_setSwitch(vi, gate, 1);
ret = agb1500_setSwitch(vi, source, 1);
ret = agb1500_setSwitch(vi, bulk, 1);
check_err (vi, ret); /* 37 */
Line Description
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.
Page view 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 207 208

Comments to this Manuals

No comments