-SCS Parameter Analyzer Reference Manual Section 13:
LPT library function reference
4200A-901-01 Rev. C / February 2017 13-101
Example
// 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.
Also see
pulse_exec (on page 13-98)
pulse_fetch (on page 13-101)
pulse_fetch
This command retrieves enabled test data and temporarily stores it in the data buffer.
Usage
int pulse_fetch(int instr_id, int chan, int StartIndex, int StopIndex, double
*Vmeas, double *Imeas, double *Timestamp, unsigned long *Status);
The instrument identification code: PMU1, PMU2, and so on
Channel number of the pulse card: 1 or 2
Start index point for data (within the overall set of data)
Final index point to be retrieved
Name of the user-defined array for retrieved voltage measure readings; this is a
single-dimension array
Name of the user-defined array for retrieved current measure readings; this is a
Name of the user-defined array for retrieved time stamps; this is a single-dimension
array
Name of the user-defined array for retrieved status for the channel