1,042
edits
| Line 148: | Line 148: | ||
''Note: the three first hot keys are automatically assigned in the "Macro" menu from the OR38/OR36 Front Panel, labeled as "0", "1" and "2".'' | ''Note: the three first hot keys are automatically assigned in the "Macro" menu from the OR38/OR36 Front Panel, labeled as "0", "1" and "2".'' | ||
* '''Edit: ''' | * '''Edit: '''Edit the macro selected. Available if no macro is being edited, recorded, or executed. | ||
* '''New: ''' | * '''New: '''Create a new macro. The new macro is opened in the editor. Available if no macro is being edited, recorded, or executed. | ||
* '''Delete: ''' | * '''Delete: '''Delete the macro selected. | ||
* '''Run: ''' | * '''Run: '''Run the macro selected. Available if no macro is being executed. | ||
* '''Properties: ''' | * '''Properties: '''Edit macro properties (name, read-only flag, and assigned hot-key). Available if no macro is being edited, recorded, or executed. | ||
[[Image:Reports_Tools_Ribbons_61.png|framed|none]] | [[Image:Reports_Tools_Ribbons_61.png|framed|none]] | ||
* '''Name:''' | * '''Name:''' Change the name of the macro. | ||
* '''Read-only:''' If the macro is read-only, the macro can be loaded to the macro editor but can<nowiki>’</nowiki>t be modified. | * '''Read-only:''' If the macro is read-only, the macro can be loaded to the macro editor but can<nowiki>’</nowiki>t be modified. | ||
* '''Hot key:''' | * '''Hot key:''' Define a hot-key to run the macro. | ||
* '''Assigned macro:''' Macro associated with the hot-key selected in "Hot-key" combo-box. If hot-key selected is already assigned, a message is generated when the window is closed, requesting confirmation of the new assignment. | * '''Assigned macro:''' Macro associated with the hot-key selected in "Hot-key" combo-box. If hot-key selected is already assigned, a message is generated when the window is closed, requesting confirmation of the new assignment. | ||
=====New===== | =====New===== | ||
[[Image:Reports_Tools_Ribbons_62.png]] | [[Image:Reports_Tools_Ribbons_62.png]] Create a new macro and loads it in the macro editor. This menu is disabled if another macro is being edited. | ||
* '''Properties [[Image:Reports_Tools_Ribbons_63.jpg]]: ''' | * '''Properties [[Image:Reports_Tools_Ribbons_63.jpg]]: '''Open a dialog box intended to edit macro properties. Macro properties consist of a set of parameters of different types, which can be used to define macro command properties. | ||
This command is enabled if the macro item is selected in the macro tree. | This command is enabled if the macro item is selected in the macro tree. | ||
| Line 202: | Line 202: | ||
* '''Value''': default value of parameter | * '''Value''': default value of parameter | ||
* '''Edit: ''' | * '''Edit: '''Open the "Parameter properties" dialog box, which is used to edit the parameter selected in parameters list. It is possible to change the name, the type, or the default value of the parameter. If the parameter is used by one or more macro commands, the type can<nowiki>’</nowiki>t be edited (the "Type" combo-box is disabled). | ||
* '''Remove: '''Removes the selected parameter. If the parameter is used by one or more macro commands, the parameter is not removed and an error message is generated. | * '''Remove: '''Removes the selected parameter. If the parameter is used by one or more macro commands, the parameter is not removed and an error message is generated. | ||
* '''Delete''' [[Image:Reports_Tools_Ribbons_66.jpg]]: | * '''Delete''' [[Image:Reports_Tools_Ribbons_66.jpg]]: Delete the selected command in the macro tree. If the macro selected contains a set of commands (for example a loop command), a dialog box appears in order to confirm command removal. If removal is confirmed, the command and all commands it contains are deleted. | ||
This command is enabled if the macro is not running and it is not read-only. | This command is enabled if the macro is not running and it is not read-only. | ||
* '''Run''' [[Image:Reports_Tools_Ribbons_67.jpg]]: | * '''Run''' [[Image:Reports_Tools_Ribbons_67.jpg]]: Run the macro from the current command (indicated by execution pointer) to the next breakpoint. If no breakpoint follows, the execution goes to the end of the macro. | ||
Enable if the macro is not running. | Enable if the macro is not running. | ||
* '''Pause''' [[Image:Reports_Tools_Ribbons_68.jpg]]: | * '''Pause''' [[Image:Reports_Tools_Ribbons_68.jpg]]: Stop macro execution. The command running is completed, and then execution stops. | ||
This command is enabled when the macro is running only. | This command is enabled when the macro is running only. | ||
* '''Step next''' [[Image:Reports_Tools_Ribbons_69.jpg]]: | * '''Step next''' [[Image:Reports_Tools_Ribbons_69.jpg]]: Run current command (indicated by execution pointer). | ||
This command is enabled when the macro is not running. | This command is enabled when the macro is not running. | ||
* '''Reset''' [[Image:Reports_Tools_Ribbons_70.jpg]]: If the macro is running, | * '''Reset''' [[Image:Reports_Tools_Ribbons_70.jpg]]: If the macro is running, stop the execution, and then set the execution pointer to the first command of the macro. | ||
* '''Record on-line''' [[Image:Reports_Tools_Ribbons_71.jpg]]: | * '''Record on-line''' [[Image:Reports_Tools_Ribbons_71.jpg]]: Record commands in the macro. The record on-line mode applies the user actions. The commands corresponding to actions are recorded and inserted in the macro before the selected command. | ||
This command is enabled if the macro is not running and it is not read-only. | This command is enabled if the macro is not running and it is not read-only. | ||
* '''Record off-line''' [[Image:Reports_Tools_Ribbons_72.jpg]]: | * '''Record off-line''' [[Image:Reports_Tools_Ribbons_72.jpg]]: Record commands in the macro. The record off line mode applies the user actions only when the macro will start. The commands corresponding to actions are recorded and inserted in the macro before the selected command. | ||
This command is enabled if the macro is not running and it is not read-only. | This command is enabled if the macro is not running and it is not read-only. | ||
* '''Insert an algorithmic command''' [[Image:Reports_Tools_Ribbons_73.jpg]]: | * '''Insert an algorithmic command''' [[Image:Reports_Tools_Ribbons_73.jpg]]: Insert an algorithmic command before the selected command. | ||
This command is enabled if the macro is not running and it is not read-only. | This command is enabled if the macro is not running and it is not read-only. | ||
* '''Save''' [[Image:Reports_Tools_Ribbons_74.jpg]]: | * '''Save''' [[Image:Reports_Tools_Ribbons_74.jpg]]: Save the macro. | ||
====Algorithmic commands==== | ====Algorithmic commands==== | ||