WR6K-OM-E Rev A ISSUED: October 2003 231
Example 3 below doesn’t use the input data at all. The middle waveform (F2) is a "golden
waveform", in this case a perfect sine (subject to 16-bit resolution), that was created using a
VBScript. The lower trace (F3) is a subtraction of the acquired waveform (upper trace) and the
golden waveform. The subtraction (of course) contains all the noise, but it also shows the
presence of a very small square wave signal.
Example 3
Here is the VBScript that produced the "golden sine" (F2 above):
Frequency = 3000000.0 ' Frequency of real data
SampleTime = InResult.HorizontalPerStep
Omega = 2.0 * 3.1416 * Frequency * SampleTime
Amplitude = 0.15 ' Amplitude of real data
For K = 0 To LastPoint
newDataArray(K) = Amplitude * Sin(Omega * K)
Next