beautypg.com

Teledyne LeCroy WaveExpert 100H Operators Manual User Manual

Page 245

background image

Wave Expert

WE-OM-E Rev A

243

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

OutResult.DataArray(True) = newDataArray ' Data in volts

OutResult.DataArray is the waveform returned to the scope and displayed on the scope as the F2
waveform.

Example 4

Example 4 is a measurement of DVI (Digital Video Interface) Data-Clock skew jitter measurement,
using a VBScript to emulate the PLL.

In this example, a customer was not able to probe the desired clock signal. The only probing point
available was the output differential clock signal (C2). However, that clock was a factor of 10 slower
than the clock embedded in the data signal (C3). By using a VBScript to create a clock waveform of
the appropriate frequency (waveform F1), the customer was able to display and measure
data-clock skew using a LeCroy instrument function and parameter.