Console View
The Console View is used to interact with MLDesigner using the built-in interpreter and to inform you about the status of MLDesigner.
In Edit Mode the Console View has two panels:
- Command
- The Command panel provides a Unix-like shell to interact with the operating system and can also be used to evaluate Tcl commands. The prompt indicates the current working directory.
- Log
- The Log panel is the console where a record of your actions is displayed and error messages or warnings are printed. You can save the contents of the console to a file or clear the console by selecting the appropriate menu option from the context menu. All messages are collected below expandable top-level entries. The Message of these entries states both the Simulation No. from which and the name of the System from where the message originated. With a click on the appropriate item you can cause the Model Editor to focus on the model instance responsible for the error.
In Simulation Mode the Console View can have several more panels:
- Simulation
- The Simulation panel is the user interface with the built-in PTcl interpreter. The standard output channels of the current simulation process are redirected to this panel. For detailed information about the built-in PTcl interpreter, refer to Modeling Using PTcl. The prompt indicates the current working directory.
- Progress
- The Progress panel is the console where you can monitor the compile process and the progress of the simulation measured as a percentage value.
- Probes
- The Probes panel is the console where you see a list of all probes. Probes are useful when it comes to searching for bugs or simply understanding what a model instance or module does during simulation runs. To add or remove probes Switch to Simulation Mode, right-click on an appropriate item in the Model Editor and select Add Probe or Remove Probe. For detailed information about probes, refer to Debugging and Analyzing Systems→Probes
- Breakpoints
- The Breakpoints panel is the console where you see a list of all breakpoints. Breakpoints are useful for debugging systems and the list of breakpoints makes it easier for you to find and edit them. To issue the Breakpoints panel Switch to Simulation Mode and turn on breakpoints with a click on the Breakpoints On/Off toolbar button. Right-click on an appropriate item in the Model Editor and select Add Breakpoint or Remove Breakpoint to add or remove breakpoints. For detailed information about breakpoints, refer to Debugging and Analyzing Systems→Breakpoints
- Animation
- The Animation panel appears if the Textual Animation toolbar button is checked. The port and instance firings are printed to the console in this mode and simulation is a lot slower.
- FSM States
- The FSM States panel is the console where you can monitor the Current State to each FSM Object in a running simulation. To issue the FSM States panel Switch to Simulation Mode and turn on the FSM States On/Off toolbar button.
- PTcl Shell
- The PTcl Shell panel provides a user interface to the built-in PTcl interpreter similar to the Simulation panel. To issue a new PTcl Shell panel right-click on the background of a shell type panel (Command, Simulation or PTcl Shell panel) and choose New PTcl Shell.