6 script editor, 1 highlighting, 2 text editing commands – Teledyne LeCroy USBTracer_Trainer - Users Manual User Manual

Page 327: 3 help, 4 properties window, 5 file tabs, 6 errors

Advertising
background image

USB Protocol Suite User Manual

Chapter 12: Traffic Generation (3.0 Exerciser)

LeCroy Corporation

313

12.6 Script Editor

After you open an existing generation script file or create a new text scenario in the
Script Editor, use the following steps to edit or build a script. The Script Editor utility has
several aids to simplify the process of writing and editing scripts: tool-tips, drop-down
menus, and colored fields.

12.6.1 Highlighting

All known commands and parameters are highlighted in blue.

All predefined values and command modifiers are highlighted in brown.

Comments are in green.

Errors are in red.

12.6.2 Text Editing Commands

The Script Editor supports standard editor commands using toolbar buttons and Edit
menu commands:

Cut/Copy/Paste: Also available by right-clicking a command to display a menu

Undo/Redo

Find/Replace/Find Next

Bookmarks: Show/Hide, Previous/Next, and Clear All

12.6.3 Help

Right-click a command to display a menu from which you can choose Help.

12.6.4 Properties Window

The Properties window lists all parameters and their values for the selected script
command. Parameters/values can be changed by entering text into the text boxes or by
selecting items from pull-down menus.

12.6.5 File Tabs

At the top of the Script Editor window is a tab with the name of the open generation file.

If there are Include statements in the generation file that link it to other generation files,
these files automatically open and display as tabs at the top of the window. You can click
the tabs to toggle between the open generation files.

12.6.6 Errors

When you compile a script and have an error, the error appears in the Error tab at the
bottom of the application window. Each error has a file name, line number, and
description. Double-clicking the error jumps to the line number.

A red square appears next to the line number that contains the error.

A yellow square appears next to the line number that has a warnings.

Note: You cannot run a script that has syntax errors.

Advertising
This manual is related to the following products: