W
AVE
R
UNNER
X
I
S
ERIES
190
WRXi-OM-E Rev C
tion script: explanatory notes
m script, but there are subtle differences.
value: you cannot use or see the extra two points. So
but only element zero is currently used. You must copy your parameter
the arrays of the Waveform Script, you cannot refer directly to elements of
not write something like
he same as the vertical unit of the trace, even if you have
e data, for example, unless you change the unit yourself.
r script, click here.
.
d your custom code here accessing OutResult and InResult objects
DemoScriptApr2.lss.
The default parameter func
The default parameter script is similar to the default wavefor
First, the size of the data array is the same as the nominal
"500 points" means just that: 500 points.
Second, the output looks like an array,
result into newValueArray(0). As with
the input and output arrays. You may
OutResult.ValueArray (0) = P.
Note that the unit of the parameter is displayed as t
squared th
To find out how to edit a paramete
The default parameter script is shown below
' TODO ad
' 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
newValueArray(i) = -scaledData(i)_' Change this to do something useful.
Next
OutResult.ValueArray = newValueArray 'only support raw data
Your parameter script should include something like this:
A. Do calculation to obtain your parameter value from the input data array.
B. newValueDataArray (0) = ParameterValue
C. OutResult.ValueArray = newValueArray
You can test this script using setup Mean
You can edit scripts using Notepad, but you will not get any notification of errors.
You are
not
allowed to write OutResult.ValueArray(0) = MeanParameter.
InResult.DataArray and OutResult.DataArray are only to be used as shown in the default scripts and in the
dividual element in these arrays.
example scripts. You cannot refer to, or modify, any in