Section 13: LPT library function reference
Model 4200A-SCS Parameter Analyzer Reference Manual
13-196
4200A-901-01 Rev. C / February 2017
Programming example #3
Performs a single frequency sweep shown in the following figure.
Figure 517: Frequency sweep example
CpGp is measured on each frequency step of the sweep.
Test parameters:
•
AC drive voltage = 15 mV
RMS
•
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); /* Set AC drive voltage to 15 mV RMS. */
setauto(CVU1); /* Select auto measure range. */
smeasz(CVU1, KI_CVU_TYPE_CPGP, KI_CVU_SPEED_NORMAL, result1, result2);
/* Configure CpGp measurements. */
rtfary(forceArray); /* Return array of force frequencies. */
dsweepf(CVU1, 100e3, 300e3, &NumPts, 0.05); /* Configure and perform sweep. */
devint(); /* Reset CVU. */