Section 13: LPT library function reference
Model 4200A-SCS Parameter Analyzer Reference Manual
13-106
4200A-901-01 Rev. C / February 2017
Example 1
// Code to configure the PMU test here
// Start the test (no analysis)
pulse_exec(0);
// while loop and short delay (10 ms)
while (pulse_exec_status(&elapsedt) == 1)
{
Sleep(10);
}
// Retrieve all data
status = pulse_fetch(PMU1, 1, 0, 49, Drain_Vmeas, Drain_Imeas,
NULL, NULL);
// Code for data handling here
This example uses
pulse_exec
to set the execution type to simple two-level pulse operation (no
analysis), and executes the test. The code pauses the program to monitor the status of the test. It uses a
while loop to check the returned value of
pulse_exec_status
. When the test is completed, the program
drops out of the loop and calls
pulse_fetch
to retrieve all the test data.
Example 2
pulse_fetch(PMU1, 1, 0, 49, Drain_Vmeas, Drain_Imeas, T_Stamp, NULL);
This command retrieves 50 points of data from the buffer, where:
•
Instr_id
= PMU1
•
chan
= 1 (channel 1)
•
StartIndex
= 0
•
StopIndex
= 49
•
Vmeas
= Drain_Vmeas (name of array)
•
Imeas
= Drain_Imeas (name of array)
•
Timestamp
= T_Stamp (name of array)
•
Status
= NULL (not retrieved)
Also see
(on page 13-112)