Device Monitoring Studio - PC Connections Data Monitoring Logging and Analyzing Software
Working with Scripts
To create new empty script file, execute the File » New » Script command. To open an existing script file, execute the File » Open… command.
Script files are opened in their own windows. You may use the built-in editor to modify script text.
To start script execution, execute the Tools » Run Script command. If TypeScript support is enabled, TypeScript compiler is used to compile the user script. During compilation, an extensive syntax error detection is performed. If any errors are found, they are displayed in script output and highlighted in the script text.
After script is checked and compiled, the execution of its global scope starts. It continues until the last statement of the global scope finishes execution. Script is then halted but not stopped completely. This is done in order for script to be able to process scheduled asyncrhonous functions or bound events.
To stop script execution, use the Tools » Stop Script command.
There are a number of options that govern the behavior of automatic script persistence. All these options are configured in the Tools » Settings, General Tab.
Full paths to script files passed in command line to Device Monitoring Studio are automatically loaded and opened. If "-run" prepends a path, corresponding script file is also executed.