beautypg.com

Teledyne LeCroy WaveExpert 100H Operators Manual User Manual

Page 279

background image

Wave Expert

WE-OM-E Rev A

277

Here are some examples of the uses of brackets:

Brackets are worked out before any other operations are performed.

Use brackets to force the result you want, and also to clarify a calculation.

A 1 1 1 1 1 1 1 1 255 0 1 0 1 1 0 1 0 90

(B OR C) AND (D OR E)

B 1 1 1 1 0 0 0 0 240 0 0 0 0 0 0 0 0 0

B OR (C AND D) OR E

C 1 0 1 0 1 0 1 0 130 1 1 1 1 1 0 1 0 250 B OR (C AND (D OR E))

D 0 1 0 1 0 1 0 1 85

0 1 0 1 1 1 1 1 95

((B OR C) AND D) OR E)

E 0 0 0 0 1 1 1 1 15

F 0 0 0 0 0 0 0 0 0

A 7

315 A * B * (C / D) * E * F

B 6

8.75 A * B * C / (D * E * F)

C 5

35

A * B * (C / (D * E) ) * F

D 4

E 3

F 2

Check these results to see whether any errors, deliberate or otherwise, have been introduced.

These results are from file Brackets.Xls. You can make a copy of that file in order to experiment
with different combinations of brackets.

VBS Controls

Do Do Do

. . . . . . . . . . . .

Loop Loop Until . . . . Loop While

Do Until Do While Exit Do

. . . . . . . .

Loop Loop

For . . . Next Exit For

GoTo__

This is not allowed in instrument VBS.

If . . . . Then . . . . _' On one line

__

If . . . Then

ElseIf . . . Then