292
SDA-OM-E Rev H
Private Sub Command1_Click()
' Draw a DSO trace on a logarithmic horizontal scale.
Dim WM As Object
Set WM = CreateObject("LeCroy.XStreamApplication")
Dim Samples As Long
Samples = WM.Math.F1.Out.Result.Samples
Samples = Samples - 1 ' Make it a round number.
' Calculate the horizontal scale.
LogSamples = Log(Samples)
XScale = Samples / LogSamples
' Set the scale using DSO variables
Dim Top, Bot As Single
Top = WM.Math.F1.Out.Result.VerticalFrameStop
Bot = WM.Math.F1.Out.Result.VerticalFrameStart
Picture1.Scale (0, Top)-(Samples, Bot)
Dim Wave
Wave = WM.Math.F1.Out.Result.DataArray
Dim Black, White, Blue, Red As Long
Black = 0: White = &HFFFFFF
Blue = &HFF4444: Red = &HFF
' Draw a theoretical curve for the peaks.
StartPoint = Top + 20#: EndPoint = -54.5
Picture1.Line (0, StartPoint)-(Samples, EndPoint), Red
' Draw the plot with linear interpolation between points.
For X = 1 To Samples
LogX = XScale * Log(X): Y = Wave(X)
If X > 1 Then
Picture1.Line (LogX, Y)-(OldLogX, OldWave), Black
End If
OldLogX = LogX: OldWave = Y
Next X
End Sub
Summary of Contents for SDA
Page 1: ...SERIAL DATA ANALYZER OPERATOR S MANUAL December 2007 ...
Page 223: ...SDA Operator s Manual Example 6 SDA OM E Rev H 223 ...
Page 225: ...SDA Operator s Manual SDA OM E Rev H 225 ...
Page 246: ...246 SDA OM E Rev H ...
Page 247: ...SDA Operator s Manual Excel Example 5 Using a Surface Plot SDA OM E Rev H 247 ...
Page 279: ...SDA Operator s Manual Convolving two signals SDA OM E Rev H 279 ...
Page 310: ...The jitter wizard is accessed from the Analysis drop down menu 310 SDA OM E Rev H ...
Page 327: ...SDA Operator s Manual SDA OM E Rev H 327 ...
Page 328: ...328 SDA OM E Rev H ...
Page 394: ...394 SDA OM E Rev H ...