Model 4200A-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
(on page 13-98)
(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
);
instr_id
The instrument identification code: PMU1, PMU2, and so on
chan
Channel number of the pulse card:
1
or
2
StartIndex
Start index point for data (within the overall set of data)
StopIndex
Final index point to be retrieved
Vmeas
Name of the user-defined array for retrieved voltage measure readings; this is a
single-dimension array
Imeas
Name of the user-defined array for retrieved current measure readings; this is a
single-dimension array
Timestamp
Name of the user-defined array for retrieved time stamps; this is a single-dimension
array
Status
Name of the user-defined array for retrieved status for the channel