Section 13: LPT library function reference
Programming example #3
Performs a single frequency sweep shown in the following figure.
CpGp is measured on each frequency step of the sweep.
Test parameters:
•
AC drive voltage = 15 mV
•
Measure mode = CpGp
•
Measure range = Auto
•
Start frequency = 100 kHz
•
Stop frequency = 300 kHz
•
Number of frequency steps = 3 (this value is returned from the command to the NumPts variable,
and not passed by the user)
•
Delay = 50 ms
double result1[6], result2[6], forceArray[6];
long NumPts;
setlevel(CVU1, 15e-3);
setauto(CVU1);
smeasz(CVU1, KI_CVU_TYPE_CPGP, KI_CVU_SPEED_NORMAL, result1, result2);
rtfary(forceArray);
dsweepf(CVU1, 100e3, 300e3, &NumPts, 0.05);
devint();
13-196
Model 4200A-SCS Parameter Analyzer Reference Manual
Figure 517: Frequency sweep example
RMS
/*
Set AC drive voltage to 15 mV RMS. */
/* Select auto measure range. */
/*
Configure CpGp measurements. */
/*
Return array of force frequencies. */
/*
Reset CVU. */
/*
Configure and perform sweep. */
4200A-901-01 Rev. C / February 2017