20-sim consists of two main windows and many tools. The first window is the Editor and the second is the Simulator. The Editor is used to enter and edit models. The Simulator is used to simulate and analyze the models. The Simulator is opened in the Editor by clicking the Start Simulator button from the Model menu.
The Simulator is used to carry out simulations, show the results and analyze them.
The Simulator consists of three parts:
|•||Simulator Tree: This is the tree at the left. Here plots and plot windows can be added.|
|•||Simulation Plot: This is the graph in the middle. Here the simulation results are shown.|
|•||Output tab: The Output tab shows warnings and messages.|
A modeling and simulation session in 20-sim can be visualized by the diagram shown below.
Modeling and Simulation in 20-sim.
After the model has been successfully entered, it must be checked and compiled to generate simulation code. This is done in 20-sim automatically when you open the Simulator or when you check a model. In some cases the model contains errors which have to be solved by adapting the model. Errors in 20-sim are presented in the Process tab at the bottom of the Editor.
After a successful compilation of a model that is created in the Editor you can open the Simulator. In the Simulator you have to enter specific settings:
After the settings have been entered you can run the simulation.
Simulation results can be shown in 20-sim as:
|•||Time Domain (default)|
|•||Animation in a Graphical Model|
If you experience problems during simulation you have to resolve them in a debugging session.
After a successful simulation you can analyze your model using various tools:
The bottom of the Simulator shows a tab named Output. This tab contains the Message Log which shows all the messages, warnings and errors, that are generated during a simulation.