Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 5-29
Programming Examples for C++ Users
Multi-Channel Pulsed Sweep Measurements
Multi-Channel Pulsed Sweep Measurements
This section explains an example subprogram that performs multi channel pulsed
sweep measurement. The following subprogram performs I-V measurement and
saves the measurement results (bipolar transistor Ic-Ve and Ib-Ve characteristics)
into a file.
Table 5-10 Multi-Channel Pulsed Sweep Measurement Example
void perform_meas (ViSession vi, ViStatus ret) /* 1 */
{
ViInt32 emitter = 1; /* SMU1 */ /* 3 */
ViInt32 base = 2; /* SMU2 */
ViInt32 collector = 4; /* SMU4 */
ViReal64 vb = 0;
ViReal64 vc = 0;
ViReal64 ibcomp = 0.1;
ViReal64 iccomp = 0.1;
ViInt32 nop = 11;
ViInt32 mch[3];
ViInt32 mode[2];
ViReal64 range[2];
ViInt32 rep;
ViReal64 sc[11];
ViReal64 md1[11];
ViReal64 md2[11];
ViInt32 eod;
ViInt32 type;
ViReal64 mdata;
ViInt32 stat;
ViInt32 ch;
mch[0] = collector;
mch[1] = base;
mch[2] = 0;
mode[0] = 1;
mode[1] = 1;
range[0] = 0;
range[1] = 0; /* 33 */
Line Description
1 Beginning of the perform_meas subprogram.
3 to 33 Declares variables, and defines the value.