![LeCroy DDA-3000A Operator'S Manual Download Page 334](http://html1.mh-extra.com/html/lecroy/dda-3000a/dda-3000a_operators-manual_1866311334.webp)
332
WM-OM-E Rev I
Private Sub Command1_Click()
Dim wm As Object
Set wm = CreateObject("LeCroy.XStreamApplication")
Set acq = wm.Acquisition ' To save typing
Set mat = wm.Math ' To save typing
Dim t(16) As Object
‘ Create an array of objects to allow looping.
Set t(1) = acq.C1 : Set t(2) = acq.C2
Set t(3) = acq.C3 : Set t(4) = acq.C4
Set t(5) = mat.F1 : Set t(6) = mat.F2
Set t(7) = mat.F3 : Set t(8) = mat.F4
Set t(9) = mat.F5 : Set t(10) = mat.F6
Set t(11) = mat.F7 : Set t(12) = mat.F8
Dim trace As Integer
trace = 0: views = 0
' Exchange the traces on the grids.
Do
trace = trace + 1
If t(trace).View = "True" Then
views = views + 1
If t(trace).UseGrid = "YT1" Then
t(trace).UseGrid = "YT2"
Else
t(trace).UseGrid = "YT1"
End If
End If
Loop Until ((trace = 12) Or (views = 2))
' Show the parity of the last swap.
If Command1.Caption = "Swap A" Then
Command1.Caption = "Swap B"
Else
Command1.Caption = "Swap A"
End If
Dim TextString As String
TextString = Text1.Text
Dim TextValue As Integer
TextValue = Val(TextString) + 1
TextString = Str(TextValue)
TextString = Trim(TextString)
Text1.Text = TextString
End Sub
This routine exchanges the first two traces that it finds. You can make it exchange all the traces on
a dual grid by changing the penultimate line to this - Loop Until trace = 12
Summary of Contents for DDA-3000A
Page 1: ...LECROY X STREAM OSCILLOSCOPES O P E R AT O R S M A N U A L SEPTEMBER 2006 ...
Page 18: ...16 WM OM E Rev I BLANK PAGE ...
Page 64: ...62 WM OM E Rev I icon in Channels dialog zooms one trace zooms all displayed traces ...
Page 80: ...78 WM OM E Rev I 4 Select a language 5 Click Next when the Wizard appears ...
Page 81: ...X Stream Operator s Manual WM OM E Rev I 79 6 Select Complete setup ...
Page 157: ...X Stream Operator s Manual WM OM E Rev I 155 ...
Page 170: ...168 WM OM E Rev I 5 Read the status information in line StatusDescription ...
Page 214: ...212 WM OM E Rev I Delay Parameter Find Range selected ...
Page 263: ...X Stream Operator s Manual WM OM E Rev I 261 ...
Page 284: ...282 WM OM E Rev I ...
Page 285: ...X Stream Operator s Manual WM OM E Rev I 283 Using a Surface Plot Excel Example 5 ...
Page 324: ...322 WM OM E Rev I ...