Model 4200A-SCS Parameter Analyzer Reference Manual
Section 13: LPT library function reference
4200A-901-01 Rev. C / February 2017
13-93
Example
// Place code to configure the PMU test here
//
// Start the test (for seg-arb testing, or for standard pulsing
// with no ranging, LLEC, or I/V/P threshold detection)
status = pulse_exec(PULSE_MODE_SIMPLE);
if ( status )
{
// Minimal error handling, release memory used to
// fetch results and stop test
Free_Used_Arrays();
return status;
}
// loop to fetch data, while waiting for test complete
abort_sent = 0;
while(pulse_exec_status(&elapsedt) == 1)
{
// Code to fetch and evaluate data here
if (abort_sent == 0)
{
// Code to fetch PMU data
// Code to evaluate data
// Code to determine if an abort is required
}
// If the test must be aborted, send dev_abort
if (abort_required && abort_sent == 0)
{
dev_abort(NULL);
abort_sent = 1;
}
Sleep(100);
}
This example illustrates placement of this command in a code a fragment. Note that after the
dev_abort
command is sent it is still necessary to use
pulse_exec_status
to poll and wait for the test to be ended.
Also see
None