Go to documentation repository
The Editor-Debugger utility is used to create, debug, and edit scripts in Axxon PSIM.
The Editor-Debugger dialog window is shown in the figure below.
The Editor-Debugger utility contains the embedded text editor and the debugging window.
To help with writing correct For the convenience of controlling the correctness of writing scripts, the text editor automatically highlights objects, methods, and properties that are a part of the included in the embedded Axxon PSIM object model of the JScript language. In additionAlso, you can collapse the code blocks can be collapsed or expanded with using the - or + buttons to the left of the Script text field.
| Info | ||
|---|---|---|
| ||
When switching you switch between scripts, script messages or , and other objects in the Editor-Debugger utility tree, the collapsing settings of the blocks collapse are reset, it meansthat is, all blocks in the script become expanded. |
The position of the cursor in each script is stored within one Axxon PSIM session (the cursor position is reset at restart). For example, if you place the cursor at the end of the //Line 2 line in Script 1, then switch to Script 2 and perform any action in it, the cursor will be still stays at the end of the //Line 2 line when you return to to Script 1.
The debugging window of the Editor-Debugger utility allows viewing the information about all events registered by in the system. You can set the event filter the events that are is displayed in the debugging window. A You must create the separate debugging window is created for each each Script system object in the Editor-Debugger utility, which allows you to debug each script individually using the filters.
To debug the script, it is possible to you can perform the test run by using a user-defined the test event set by the user generated by the utility and not registered in the system. To display or edit this event, select Debug and edit → Summary Information, and then go to the Trial event tab on the panel that opens at the bottom of the window. For details, see Creating and using test events.
...
You can save the created script in the Script system object or in a the text file on the computer hard drive.