Model 4200A-SCS Parameter Analyzer Reference Manual
Section 13: LPT library function reference
4200A-901-01 Rev. C / February 2017
13-33
PostDataDouble
This command posts double-precision floating point data from memory into the Clarius Analyze sheet.
Usage
int PostDataDouble(char *
ColName
, double *
array
);
ColName
Column name for the data array in the Clarius Analyze sheet
array
An array of data values for the Clarius Analyze sheet
Pulsers
4225-PMU
Pulse mode
Standard and Segment Arb
Details
You can use the
PostDataDouble
command to post double-precision floating point data into the
Clarius Analyze sheet. Up to 65,535 points (rows) of data can be posted into the Analyze sheet.
These commands are used after one measurement point is finished and a data value is assigned to
the corresponding output variable.
If you do not need to analyze or manipulate the test data before posting it into the Analyze sheet, you
can use
smeasxrt
for CVUs or
pulse_measrt
for PMUs, which retrieves all the test data in
pseudo real-time and automatically posts it into the Analyze sheet.
Example
// Code to configure the PMU test here
// Start the test (no analysis)
pulse_exec(0);
// While loop (continues while test is still running), with delay
// (30 ms)
while(pulse_exec_status(&elapsedt) == 1)
{
Sleep(30);
}
// Retrieve V and I data (no timestamp or status)
status = pulse_fetch(PMU1, 1, 0, 100, Vmeas, Imeas, NULL, NULL);
// Separate V & I measurements for high (amplitude) and
// low (base)
for (i = 0; i<100; i++)
{
VmeasHi_sheet[i] = Vmeas[2*i];
ImeasHi_sheet[i] = Imeas[2*i];
VmeasLo_sheet[i] = Vmeas[2*i+1];
ImeasLo_sheet[i] = Imeas[2*i+1];
PostDataDouble("DrainVmeas", VmeasHi_sheet[i]);
PostDataDouble("DrainImeas", ImeasHi_sheet[i]);
}