SDA Operator’s Manual
SDA-OM-E Rev H
251
InResult.DataArray and OutResult.DataArray are only to be used as shown in the default scripts
and in the example scripts: you cannot refer directly to individual elements of these arrays. You
have to use your own arrays, in this example, unscaledData and newDataArray. You are not
allowed to write statements like the following:
Y = InResult.DataArray (17)
OutResult.DataArray (257) = Z
Some parts of the default script must not be changed because they are a part of the interface.
These are
highlighted
in the following script .
' TODO add your custom code here accessing OutResult and InResult
objects
' Here's a small example that just i
OutResult.Samples = InResult.Samples
nverts the waveform.
startData = 0
endData =
OutResult.Samples
newNumPoints = endData - startData
ReDim newDataArray (
OutResult.Samples
)
unscaledData =
InResult.DataArray
(False)
For i = 0 To endData - 1
newDataArray (i) = - unscaledData (i)
Next
OutResult.DataArray
(False) = newDataArray _
' only support raw data
The four highlighted quantities are parts of the interface. The names must be retained.
Furthermore, InResult.Samples and InResult.DataArray are inputs, and their values cannot be
changed. OutResult.Samples and OutResult.DataArray are outputs, and can be changed, but not
directly through their individual elements.
The default parameter function script: explanatory notes
The default parameter script is similar to the default waveform script, but there are subtle
differences.
First, the size of the data array is the same as the nominal value: you cannot use or see the extra
two points. So "500 points" means just that: 500 points.
Second, the output looks like an array, but only element zero is currently used. You must copy
your parameter result into newValueArray(0). As with the arrays of the Waveform Script, you
cannot refer directly to elements of the input and output arrays. You may not write something like
OutResult.ValueArray (0) = P.
Note that the unit of the parameter is displayed as the same as the vertical unit of the trace, even
if you have squared the data, for example, unless you change the unit yourself.
To find out how to edit a parameter script, click here.
The default parameter script is shown below.
' TODO add your custom code here accessing OutResult and InResult
objects
' Here's a small example that just inverts the waveform
numParam = InResult.Samples
ReDim newValueArray(numParam)
scaledData = InResult.DataArray
For i = 0 To numParam-1
Summary of Contents for SDA
Page 1: ...SERIAL DATA ANALYZER OPERATOR S MANUAL December 2007 ...
Page 223: ...SDA Operator s Manual Example 6 SDA OM E Rev H 223 ...
Page 225: ...SDA Operator s Manual SDA OM E Rev H 225 ...
Page 246: ...246 SDA OM E Rev H ...
Page 247: ...SDA Operator s Manual Excel Example 5 Using a Surface Plot SDA OM E Rev H 247 ...
Page 279: ...SDA Operator s Manual Convolving two signals SDA OM E Rev H 279 ...
Page 310: ...The jitter wizard is accessed from the Analysis drop down menu 310 SDA OM E Rev H ...
Page 327: ...SDA Operator s Manual SDA OM E Rev H 327 ...
Page 328: ...328 SDA OM E Rev H ...
Page 394: ...394 SDA OM E Rev H ...