Columns, Dataarray, Xy interface – Teledyne LeCroy WaveExpert series Automation Manual User Manual
Page 44
A
BOUT
R
ESULTS
Set CellValueOb = DecoderTableResult.CellValue(1, 2)
CellValue = CellValueOb.Value
Scopes that have a serial decoder option include a script for outputting the table of decoded values. These can
be found on the scope within the D:\Applications folder.
Columns
Applies to: Persist, Table
Description: Number of columns in the DataArray. Typically equal to 1000 for Persist waveforms. For Tables, the
result can vary depending on the application.
Example:
Dim Columns As Integer
‘Persist example
Columns = app.SDA.Eye.Out.Result.Columns
‘Table example
Columns = app.SerialDecode.Decode1.Out.Result.Columns
DataArray
Applies to: Digital, Persist, Waveform, XY
General Description: Variant array containing data for a trace. The implementation depends on the type of
waveform; see below for further details.
XY Interface:
Arguments (optional):
arrayValuesScaled as Boolean
Default value:TRUE, data is scaled
Determines whether returned values are scaled or raw. Passing TRUE indicates scaled data;
FALSE indicates raw data. Scaled values are double precision; raw values are 16-bit signed
integers. See the properties XVerticalPerStep, XVerticalResolution and XVerticalOffset properties
(and the corresponding Y coordinate) for more information
numSamples as Long
Default value: -1, retrieve all data
Number of samples to retreived
startIndex as Long
Default value: 0, first sample
Index of the first sample to be retreived.
sparsingFactor as Long
Default value: 1, no sparsing
Determines the sparsing factor to use. For example, a sparsing factor of 5 means to retreive
every 5
th
point. (Note: Use the math function called Sparse in order to configure sparsing offset)
Example:
‘Reads values to use for DataArray arguments from a spreadsheet, and then
loops through
‘the retrieved array, saving the data to the spreadsheet along with sample
index and sample time.
Const ROWOFFSET = 10
Const COLOFFSET = 7
2-8
916435 RevA