The Default Parameter Function Script: Explanatory Notes - LeCroy WaveMaster 8600A Operator's Manual

X-stream oscilloscopes
Table of Contents

Advertisement

For i = 0 To endData - 1
newDataArray (i) = - unscaledData (i)
Next
OutResult.DataArray (False) = newDataArray
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.
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.
288
_' only support raw data
WM-OM-E Rev I

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents