The Scripts and Script Output panes are the interface to the PSCAD Automation Library, which enables users to automate many aspects of the PSCAD application. For more comprehensive guide on automation via Python scripting, see Application Automation with Python.
To view the scripts pane, click the View tab in the ribbon control bar, select the Panes drop-menu and select Scripts. To view the script output pane, select Script Output.

The following panes will open upon the above actions:
|
|
Scripts Pane |
Script Output Pane |
You may also open the scripts pane by first creating, or adding a Python script (*.py) file, and displaying it in the Scripts pane.
The Scripts pane includes the relevant controls needed to run and record scripts. These exist as buttons along the top bar:

New: Creates a new Python script (*.py) file.
Record: Records actions to a Python script (*.py) file.
Run: Runs a Python script (*.py) file.
Stop: Stops the Python script (*.py) file run or record session.
Save: Saves the Python script (*.py) file.
By Name: This button, when pressed, will ensure that component name, as opposed to component ID, will be written to the script file when recording. Note that in order for By Name to work, the component must have a defined Name text parameter (text parameter symbol must be Name). By Name can be toggled on and off while in a recording session.
|
|
Component Name (By Name invoked) |
Component ID |
The Script Output pane is used simply to display any informational, warning or error messages that may be output from the Python Interpreter. For example:

Note that some of the script output panes lines are dynamic. For example, if the line:

is double-clicked, the specified file will open in the scripts pane.