beautypg.com

Figure 15.15 if-then-else example – Teledyne LeCroy UWBTracer User Manual User Manual

Page 293

background image

UWBTracer/Trainer User Manual

Chapter 15: Creating and Editing Generation Files

LeCroy Corporation

275

Figure 15.15 shows how to make an If-Then-Else graphical scenario. Put an
Else
element immediately after an If element and link from the No link of the If
element to the Else element.

The Yes link of the If element must terminate on an End If element.

The Yes link of the Else element must terminate on an End Else element.

The No link of an If or Else element must not have a terminator element and
must be on the path to the End block.

If the If condition is met, the scenario follows the Yes link of the If element. If the
If condition is NOT met, the scenario follows the No link of the If element to the
Else element. If the Else condition is met, the scenario follows the Yes link of the
Else element. If the Else condition is NOT met, the scenario follows the No link
of the Else element.

The figure also illustrates Loop elements. The Yes link of a Loop element must
terminate with a Continue Loop element. The No link of a Loop element must not
have a terminator element and must be on the path to the End block.

Figure 15.15 If-Then-Else Example

Step 9 To save the graphical scenario and make a generation script file, click

the Save button or select File > Save. The application lists any errors in
the Errors tab.