X-Stream Operator’s Manual
WM-OM-E Rev I 287
You can also start with True and convert to False, but in this case overflows will cause an error
message.
Anything after a single quotation mark on a line will not be used by the instrument. This feature is
intended for comments, for example
' This is a comment.
A = Amp * Sin(Omega * T) Calculate the output.
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 inverts the waveform.
OutResult.Samples = InResult.Samples
startData = 0
endData = OutResult.Samples
newNumPoints = endData - startData
ReDim newDataArray (OutResult.Samples)
unscaledData = InResult.DataArray (False)