Keithley 4200A-SCS Reference Manual page 950

Parameter
Hide thumbs Also See for 4200A-SCS:
Table of Contents

Advertisement

Model 4200A-SCS Parameter Analyzer Reference Manual
Retrieve blocks of data while the test is running
An advantage of the pulse_exec command being non-blocking is that it allows you to retrieve test
data before the test is completed, which is useful for a test that takes a long time. Instead of waiting
for the entire test to finish, you can retrieve blocks of data at prescribed intervals. The interval can be
controlled by using the sleep command as shown in the following program fragment.
Program fragment 2
// Code to initialize the data arrays
for (i = 0; i < array_size; i++)
{
Drain_Vmeas = 0.0;
Drain_Imeas = 0.0;
}
// Code to configure the PMU test here
// Start the test and pause for 20 seconds
pulse_exec(0);
Sleep(20000);
// Retrieve a block of test data:
pulse_fetch(PMU1, 1, 0, 10e3, Drain_Vmeas, Drain_Imeas, 1, NULL);
// Code for data handling here
After retrieving a block of data, loop back to the sleep command to allow the next block of data to
become available before fetching it. Repeat this loop until all the data is retrieved.
The pulse_fetch command will return all data available at the time of the call. The remaining array
space will not be modified. To determine how much data was retrieved, it is recommended to initialize
the arrays. Program fragment 2 initializes the results arrays to 0.0, but other values may be used.
After the retrieving the data, search the array for the first entry with this initialized value.
Retrieved blocks of data can be analyzed and manipulated while the test is still running. After data
handling is completed, use the PostDataDoubleBuffer command to post the data to the Clarius
Analyze sheet.
4200A-901-01 Rev. C / February 2017
Section 13: LPT library function reference
13-105

Advertisement

Table of Contents
loading

Table of Contents