WavePro 7Zi
357
WP700Zi-OM-E-RevA
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
Summary of Contents for DDA 7 Zi series
Page 1: ...Operator s Manual WavePro SDA and DDA 7 Zi Series Oscilloscopes ...
Page 2: ... L R R H HUD RU D D ...
Page 41: ...Operator s Manual WP700Zi OM E RevA 40 The detachable WavePro Zi front panel ...
Page 376: ...WavePro 7Zi 375 WP700Zi OM E RevA Absolute Offset Relative ...
Page 439: ...Operator s Manual WP700Zi OM E RevA 438 ...
Page 440: ...WavePro 7Zi 439 WP700Zi OM E RevA ...
Page 544: ...Thank you for purchasing a WavePro SDA or DDA 7 Zi Oscilloscope ...