beautypg.com

Teledyne LeCroy WaveRunner XI SERIES Operator’s Manual User Manual

Page 223

background image

O

PERATOR

S

M

ANUAL

Set t(9) = mat.F5 : Set t(10) = mat.F6

Set t(11) = mat.F7 : Set t(12) = mat.F8

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)

Text1.Text = TextString

End Sub

This routine exchanges the first two traces that it finds. You can make it exchange all

Dim trace As Integer

trace = 0: views = 0

' Exchange the traces on the grids.

Do

trace = trace + 1

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 t(trace).View = "True" Then

TextString = Trim(TextString)

the traces on a dual grid by

changing the penultimate line to this - Loop Until trace = 12

WRXi-OM-E Rev C

223