On this page
When simulating a model, you can choose to display simulation information not only in the Simulation window but in diagrams as well. For example, you can see runtime values directly on Part shapes or a flowing item with its name on a path.
You can display simulation information only in diagrams that are based on a Composite Structure Diagram. However, the flowing information on paths can also be shown in an Activity Diagram. |
In diagrams, active States can be displayed on the shapes of all initialized Parts a similar way they are displayed on the Variables pane of the Simulation window (in square brackets).
Active States are not displayed for Parts with the multiplicity of more than one. |
If you do not want to see active States in diagrams during simulation, you can disable the Show Active States on Part Shapes animation option. For more information, see Disabling and enabling animation options.
You can display active State images on Part shapes by applying an image to a State or by assigning an Image Switcher to the Simulation Configuration from which you execute your model. When States change during simulation, State images change as well.
If you specify State images both by applying them to States and assigning an Image Switcher to the Simulation Configuration, the images of the Image Switcher will be used when running the Simulation Configuration. |
To display active State images when executing a model
If you run a Simulation Configuration, use an Image Switcher to display active State images as described below.
To display active State images when running a Simulation Configuration
For every active State image you want to create, create an Active Image element as the attribute of the Image Switcher.
To create an Active Image attribute for an Image Switcher, click Active Image in the diagram palette, then click the Image Switcher shape. |
In the Specification window of every Active Image specify the following properties:
Image property - select the image you want to use for a specific State. Click to select an image from the default image library, click
to select an image from your file system, or click
to specify an image URL.
Active Element property - select the State which the Active Image represents.
In diagrams, you can display the runtime values of Part properties and Port labels the same way they are displayed in the Variables pane of the Simulation window. Runtime values are displayed next to property names on Part shapes and Port labels, instead of the default property values. Note that when you run a simulation, property types are not displayed.
Runtime values can be displayed only for the following types of properties:
Runtime values on Part shapes are highlighted in green (the Requirement is satisfied) or red (the Requirement is not satisfied) when the automated Requirement verification is performed. In addition, a tooltip with the text of unsatisfied Requirements or constraints appears when you hover the mouse pointer over Part or Value Property shapes. |
If a runtime value does not fit in a shape and is cut off, resize the shape as described below.
|
In addition, you can modify runtime values directly in diagrams and change simulation results in real-time. If you do not want to see runtime values in diagrams during simulation, you can disable the animation options. For more information, see Disabling and enabling animation options.
You can choose to display flowing information on animated paths when executing a model. In diagrams based on a Composite Structure Diagram, the flowing item is displayed as a moving triangle with a label showing the item name (see the image below). In Activity Diagrams, the flowing item is displayed as a bubble.
You can also send a trigger directly from a Part shape in a diagram and see the flowing item on a path. If you do not want to see flowing information in diagrams during simulation, you can disable the Show Flowing Information animation option. For more information, see Disabling and enabling animation options.
You can disable or enable animation options, such as displaying active States and runtime values on Part shapes. The steps below explain how to change option values for the whole project and a specific Simulation Configuration. Note that by default all simulation animation options are enabled.
To disable or enable animation options for a project
To disable or enable animation options for a Simulation Configuration
Show Active State Images - Select On Part shapes to show active State images on Part shapes. Select In the Simulation UI to show active State images in the simulation UI dialog. To show images both on Part shapes and in the simulation UI dialog, select Both.