Scripts and Script Output Panes

 

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.

Viewing

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.

Controls

The Scripts pane includes the relevant controls needed to run and record scripts. These exist as buttons along the top bar:

 

 

Component Name (By Name invoked)

Component ID

Script Output

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.