![LeCroy WaveRunner 104MXI Operator'S Manual Download Page 190](http://html1.mh-extra.com/html/lecroy/waverunner-104mxi/waverunner-104mxi_operators-manual_1866369190.webp)
W
AVE
R
UNNER
X
I
S
ERIES
190
WRXi-OM-E Rev B
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
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 MeanDemoScriptApr2.lss.
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
example scripts. You cannot refer to, or modify, any individual element in these arrays.