Keithley 4200-SCS Reference Manual page 706

Semiconductor characterization system
Hide thumbs Also See for 4200-SCS:
Table of Contents

Advertisement

Section 8: Keithley User Library Tool (KULT)
Program fragment 2
Example
8-190
Retrieve blocks of data while test is running
An advantage of the pulse_exec function 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 function as
shown in the following program fragment.
// Code to initialize the data arrays
for i (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 function 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
data to the KITE Sheet tab.
This function retrieves 50 points of data from the buffer:
pulse_fetch(PMU1, 1, 0, 49, Drain_Vmeas, Drain_Imeas, T_Stamp,
NULL);
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)
Return to
Section Topics
Model 4200-SCS Reference Manual
PostDataDoubleBuffer
function to post the
4200-901-01 Rev. S / May 2017

Advertisement

Table of Contents
loading

Table of Contents