5-32 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Programming Examples for C++ Users
Staircase Sweep with Pulsed Bias Measurements
Staircase Sweep with Pulsed Bias Measurements
This section explains an example subprogram that performs staircase sweep with
pulsed bias measurement and saves the measurement results (MOSFET Id-Vd
characteristics) into a file.
Table 5-11 Staircase Sweep with Pulsed Bias Measurement Example
void perform_meas (ViSession vi, ViStatus ret) /* 1 */
{
ViInt32 drain = 1; /* SMU1 */ /* 4 */
ViInt32 gate = 2; /* SMU2 */
ViInt32 source = 3; /* SMU3 */
ViInt32 bulk = 4; /* SMU4 */
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;
ViReal64 width = 0.001;
ViReal64 period = 0.01;
ViReal64 p_hold = 0.1;
ViInt32 nop1 = 11;
ViInt32 nop2 = 3;
ViInt32 i = 0;
ViInt32 j;
ViInt32 n;
ViInt32 rep;
ViReal64 sc[33];
ViReal64 md[33];
ViInt32 st[33];
ViReal64 dvg[3];
ViChar f_name[] = "C:\Agilent\data\data6.txt";
ViChar head1[] = "Vg (V), Vd (V), Id (mA), Status";
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.