Run the Carousel Demo
Overview
Audio and video have been added to the carousel demo. The demo also uses many advanced features that are left to your experimentation and investigation.
On UNIX systems, the audio portion of the demo is disabled.
Carousel Operator's Console
As in the carousel solution example, the switches in the Simulink model are used to act as a carousel operator's console. The switches allow you to:
Procedure
Follow these steps to run the demo:
- 1
. - Double-click on the Examples block in the Stateflow model window.
Double-click on the Carousel and then Multi-Media Carousel block.
- 2
. - Choose Start from the graphics editor Simulation menu.
- The first time you run the simulation, and any time you have modified the
Stateflow diagram, choosing Start will parse the machine, generate
simulation code and generate the simulation target. If the target build takes
place, informational messages are displayed in pop-up windows and in the
MATLAB command window.
- In any case, the graphics editor is "iced" and modifications to the Stateflow
diagram are prohibited during a simulation.
- 3
. - Turn the power on by clicking the power switch from off to on.
- 4
. - Ensure that the running speed switch is in the normal position.
- 5
. - Click the start switch on to start the carousel. The ride runs for
Duration
seconds but can be stopped prematurely by changing the running speed
switch to overspeed or by clicking the emergency switch.
- If you have sound support (sound board, driver, and speakers), you should
hear the music. You should also see a representation of the carousel
platform rotating in XY Graph figure window. The Stateflow diagram has
animation enabled, so you can see the state transitions occur as the
simulation executes.
- 6
. - Click the emergency switch to bring the carousel to an emergency stop.
- 7
. - Choose Stop from the graphics editor Simulation menu to stop the
simulation (and unfreeze the graphics editor). The simulation must be
stopped to be able to close the model.
- 8
. - Choose Close from the File menu of the carousel demo model window.
[ Previous | Help Desk | Next ]