O
PERATOR
’
S
M
ANUAL
E
XAMPLE
3
Here is the VBScript that produced the "golden sine" (F2 above):
Frequency = 3000000.0 ' Frequen
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)
cy of real data
OutResult.DataArray is the waveform returned to the oscilloscope and displayed on the oscilloscope as the F2
Next
OutResult.DataArray(True) = newDataArray ' Data in volts
waveform.
WRXi-OM-E Rev C
169