Skip to main content

Script Execution

Scripts can be executed by selecting "Start Script System" from the Script menu, pressing Ctrl+F6, or clicking the "Start Script System" button in the Script Editor. 
Execution of script can be stopped by selecting "Stop Script System" from the Script menu, pressing Ctrl+Break, or clicking the "Stop Script System" button in the Script Editor.

The operation of starting scripts will validate any script that has not been validated yet.

drawing-7-1676350026.png

To show the Script Editor, go to the Menu bar and select View > Editors > Script Editor.

drawing-7-1676350068.png

Script System Playing (i.e. executing)

Executing scripts changes the "Start Script System" button in the Script Editor to a "Pause" button: 

drawing-7-1676350121.png

Executing the script shown in the screenshot produces output in the Candera Logging tab. 

drawing-7-1676350143.png

During execution of scripts, their parameters in the ScriptComponent Property tab are updated in realtime to reflect their current values.


Script System Pausing (i.e. execution is paused)

When script execution is paused, the button in the Script Editor changes to "Resume": 

drawing-7-1676350177.png

When execution of scripts is paused, the parameters in the ScriptComponent Property tab can be edited and will affect script execution once it is resumed. The Enabled flag and the Priority can also be changed in realtime affecting the execution of scripts.

drawing-5-1706885042.png

Script System Stopped

When execution is stopped, the parameters of all script components are reset to their values before execution was started. This includes any changes to parameter values during paused execution, as well as the Enabled flag of the component.

While scripts are being executed, they can be edited in the Script Editor. However they can only be validated when the script system is stopped.