Operator's Manual
266
ISSUED: October 2003
WR6K-OM-E Rev A
' TODO add your custom code here accessing OutResult and InResult
objects
' Here's a small example that just inverts the waveform.
OutResult.Samples = InResult.Samples
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
Summary of Contents for 6000 SERIES
Page 65: ...WR6K OM E Rev A ISSUED October 2003 63 Proper Orientation of Drive ...
Page 131: ...WR6K OM E Rev A ISSUED October 2003 129 Example ...
Page 141: ...WR6K OM E Rev A ISSUED October 2003 139 ...
Page 236: ...Operator s Manual 234 ISSUED October 2003 WR6K OM E Rev A Example 6 ...
Page 261: ...WR6K OM E Rev A ISSUED October 2003 259 ...
Page 286: ...Operator s Manual 284 ISSUED October 2003 WR6K OM E Rev A ...
Page 304: ...Operator s Manual 302 ISSUED October 2003 WR6K OM E Rev A ...
Page 307: ...WR6K OM E Rev A ISSUED October 2003 305 Convolve two signals ...
Page 348: ...Operator s Manual 346 ISSUED October 2003 WR6K OM E Rev A ...
Page 402: ...Operator s Manual 400 ISSUED October 2003 WR6K OM E Rev A ...