1. From Modeler, open the Heart Monitor C model that resides in the Examples database (see
the instructions).
2. If the State Simulation toolbar is not shown, on the View menu, point to Toolbars, and then click State Simulation
3. On the State Simulation toolbar, ensure that the following buttons are selected, that is, depressed:
Enable Animation button.
Enable Open Diagram Mode.
Enable Notification Logging to the Output Pane button.
4. From Windows Explorer, double-click the Heart Monitor application (HeartMonitorUI.exe). If you have installed Modeler to the default location, the path of the HeartMonitorUI.exe application is as follows:
5. In the Heart Monitor application, ensure that the Auto-Launch check box is selected.
6. Click the Power button.
After starting the simulation:
• The Heart Monitor C application connects to Modeler.
• Modeler loads the Listener DLL.
• Modeler opens the instance diagrams required to animate the simulation. On the instance diagrams, the red outline indicates the state machine has entered the Created state. The state machine is waiting for the Power button to be pressed.
• The Output pane of Modeler records a log of the simulation session. You can see that the last activity to take place was the Enter Operation for the Cardio class.
• You can now interact with the simulation through the Heart Monitor C application.