Difference between revisions of "NVGate Macro"

Jump to navigation Jump to search
22 bytes removed ,  10:19, 7 January 2022
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: '''Edits the macro selected. Available if no macro is being edited, recorded, or executed.
* '''Edit: '''Edit the macro selected. Available if no macro is being edited, recorded, or executed.
* '''New: '''Creates a new macro. The new macro is opened in the editor. Available if no macro is being edited, recorded, or executed.
* '''New: '''Create a new macro. The new macro is opened in the editor. Available if no macro is being edited, recorded, or executed.
* '''Delete: '''Deletes the macro selected.
* '''Delete: '''Delete the macro selected.
* '''Run: '''Runs the macro selected. Available if no macro is being executed.
* '''Run: '''Run the macro selected. Available if no macro is being executed.
* '''Properties: '''Edits macro properties (name, read-only flag, and assigned hot-key). Available if no macro is being edited, recorded, or executed.  
* '''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:''' Changes the name of the macro.
* '''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:''' Defines a hot-key to run the macro.
* '''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]] Creates a new macro and loads it in the macro editor. This menu is disabled if another macro is being edited.
[[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]]: '''Opens 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.
* '''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: '''Opens 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).
* '''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]]: Deletes 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.
* '''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]]: Runs 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.
* '''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]]: Stops macro execution. The command running is completed, and then execution stops.
* '''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]]: Runs current command (indicated by execution pointer).
* '''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, stops the execution, and then sets the execution pointer to the first command of the macro.
* '''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]]: Records 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.
* '''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]]: Records 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.
* '''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]]: Inserts an algorithmic command before the selected command.
* '''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]]: Saves the macro.
* '''Save''' [[Image:Reports_Tools_Ribbons_74.jpg]]: Save the macro.
 
 


====Algorithmic commands====
====Algorithmic commands====

Navigation menu