Model 4200A-SCS Parameter Analyzer Reference Manual
Section 13: LPT library function reference
4200A-901-01 Rev. C / February 2017
13-95
Example
// Code to configure the PMU test here
// Start the test (no analysis)
status = pulse_exec(0);
// While loop (continues while test is still running), with
// delay (30 ms)
while (pulse_exec_status(&elapsedt) == 1)
{
Sleep(30);
}
// Retrieve V, I, and timestamp data (no status)
status = pulse_fetch(PMU1, 1, 0, 20e3, Vmeas, Imeas, Tstamp, NULL);
// Separate V, I, and timestamp measurements
for (i = 0; i<20e3; i++)
{
Vmeas_sheet[i] = Vmeas[2*i];
Imeas_sheet[i] = Imeas[2*i];
Tstamp_sheet[i] = Tstamp[2*i];
}
PostDataDoubleBuffer("DrainVmeas", Vmeas_sheet, 20e3);
PostDataDoubleBuffer("DrainImeas", Imeas_sheet, 20e3);
PostDataDoubleBuffer("Timestamp", Tstamp_sheet, 20e3);
Posts waveform measurement data into the Analyze sheet. This example assumes that a PMU waveform
test is configured to perform 20,000 (or more) voltage and current measurements. Use
pulse_meas_wfm
to configure the waveform test.
The code:
•
Starts the configured test.
•
Uses a while loop to allow the waveform test to finish.
•
Retrieves voltage, current, and timestamp readings (20,000 data points) from the buffer.
•
Separates the voltage, current, and timestamp readings.
•
Posts the measurement data into the Clarius Analyze sheet.
Also see
(on page 13-101)
(on page 13-112)