Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The Editor-Debugger utility is designed for creating, debugging and editing scripts in the Axxon PSIM software package.

Figure shows the Editor-Debugger dialog window.

The Editor-Debugger utility contains the built-in text editor and the debugger window.

To help with writing correct codes, the text editor automatically highlights objects, methods and properties in different colors. In addition, the code blocks can be collapsed or expanded with - or + buttons in the left of the Script text field.

Note.

When switching between scripts, script messages or other objects in the Editor-Debugger utility tree, the collapsing settings are reset, i.e. all blocks in the script become expanded.

The position of the cursor in each script is stored in the context of one Axxon PSIM session (the cursor position is reset at the product restart). For example, if you place the cursor at the end of //Line 2 in Script 1, then switch to Script 2 and perform any action in it, the cursor will be still at the end of //Line 2 when you return to Script 1.

The debugger window allows viewing the information about all events registered by the system. You may filter the events to be shown in the debugger window. A separate debugger window is created for each Script object, which allows each script to be debugged individually using the filters.

To debug the script, it is possible to test run using a user-defined test event 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.

Scripts can be saved as Script objects or as text files on the hard drive.

  • No labels