Running a Script
To run a script file in SIwave:
- Click Tools. From the Scripting area, click Run Script to open an explorer window.
- Use the file browser to locate and select a *.py script file.
- Click Open.
The script is executed.
SIwave also supports running VB script files (*.vbs) with the environment variable SIWAVE_ENABLE_VB_SCRIPT_SUPPORT set to 1. VB script files can be run from the command line without setting an environment variable.
To run a script file from a command line:
- Type the following:
<path to siwave.exe> <path to *.siw file> -RunScript <path to *.py file>
SIwave opens and the script is executed.
Alternatively, type the following to run the script and close SIwave:
<path to siwave.exe> <path to *.siw file> -RunScriptAndExit <path to *.py file>
To run a script from the Python command shell:
- Click Tools. From the Scripting area, click IronPython Command Shell.
The command window appears.
- Type an appropriate script commands and press Enter.