5 modifying script macros – Teledyne LeCroy Summit Z3-16 PCI Express Multi-lane Exerciser User Manual User Manual

Page 78

Advertising
background image

Teledyne LeCroy

Macros

78

 

 

Summit Z3‐16 PCI Express Multi‐Lane Exerciser User Manual

7. Type the script code and press the Save button. The script macro and icon are saved 

in the GenScriptMacros directory located under the PETracer directory (for example, 
Program Files\CATC\PETracer\GenScriptMacros).

8. Close the script window. The new macro script button automatically appears on the 

Status bar at the bottom of the window. Clicking this button causes the Exerciser to 
execute the script.

Adding Script Files to the GenScriptMacros Directory

The second way to add a new script macro is to copy an existing script file in the 
GenScriptMacros directory. 

1. Copy a script file into the GenScriptsMacros directory located under the PETracer 

directory (for example, Program Files\CATC\PETracer\GenScriptMacros).

2. Switch to the PETracer application. You see that a new icon has been automatically 

added for the script file to the Status bar at the bottom of the window. The default 
icon is assigned to the new script macro and the file name is used as a script name.

5.1.5

Modifying Script Macros

To modify a macro assigned to a button:

1. Select Setup > Generation Macro from the menu to open the Generation Macros 

dialog for modifying, creating, and deleting macros:

Name: Name of Macro

Comment: Descriptive comment so you can remember what the macro does

Icon: Currently assigned button for the macro.

Show icon on the toolbar: If checked, places the icon on the Status bar.

Edit Code: Opens a dialog for editing the macro script.

2. Select the macro to be modified.
3. Within the Script properties area, modify the script name, script comment, script 

icon, and whether or not to show script icon 

4. To edit script code, press the Edit code... button. The Generation Macros dialog 

closes and the Script Editing window appears, showing current code for the selected 
script macro. 

Note:

If the Generation Script Editor pane does not appear, click 

.

5. Modify the script code and press the Save button  . 
6. Close the script window. The macro has now been modified.

5.1.6

Changing the Order of Macro Icons on the Status Bar

To change the order of script macro icons on the Status bar:

1. Open Generation Macro Scripts dialog by selecting Setup > Generation Macros.
2. Click the Up and Down buttons to change the order of the script macros.
3. Close the dialog. The button order is changed.

Advertising