visualization and animation for debugging
visualize and animate simulations in simevents® models using tools available in simulink® and simevents software.
you can place many simulink sink blocks directly on the entity line to observe entities, including the to workspace and dashboard scopes.
if the entity type is anonymous, you can place a scope block.
to observe bus or structured type entities, use the simulation data inspector or dashboard scopes. the scope and display blocks do not support buses.
which debugging tool to use
these tools help you explore various elements of a simevents model.
items to observe | visualization tool and its purpose |
---|---|
statistics |
|
entities passing through model | |
entity animation | animation — highlight active entities in the simulation. |
step of a simulation | simulink simulation stepper — step forward and back through a simulation. for more information, see step through simulation. |
custom animation | use simevents custom visualization api — create custom observers of the entities and events in a model. for more information, see . |
note
the simulink floating scope does not support simevents models.
simulation data inspector is a unified user interface for viewing both entities and signal (for example, statistics) data. for more information, see .
observe entities with animation
during simulation, animation provides visual verification that your model behaves as you expect. animation highlights active entities in a model as execution progresses. you can control the speed of entity activity animation during simulation, or turn off animation. in a model window, right-click and select animation speed.
fast
medium
slow
none
the fast animation speed shows the active highlights at each time step. to add delay with each time step, set the animation speed to medium or slow. to turn off the animation, select none.
explore the system using the simulink simulation stepper
simulation stepper enables you to step through major time steps of a simulation. use this tool to explore your discrete-event system. for more information, see debug simulations in the simulink editor.
information about race conditions and random times
you can vary the processing sequence for simultaneous events or make the intergeneration times or service times random.
see also
| | | | |