User`s guide

1 Getting Started
1-18
Virtual Reality World and Dynamic System Examples
In this section...
“Simulink Interface Examples” on page 1-18
“MATLAB Interface Examples” on page 1-30
Simulink Interface Examples
For all the examples that have a Simulink model, use the following procedure to run the
example and view the model:
1
In the MATLAB Command Window, enter the name of a Simulink model. For
example, enter:
vrbounce
A Simulink window opens with the block diagram for the model. By default, a virtual
world also opens in the Simulink 3D Animation Viewer or your VRML-enabled Web
browser. If you close the virtual world window, double-click the VR Sink block to
display it again.
Note: If the viewer does not open, double-click the VR Sink block in the Simulink
model. In the Simulink 3D Animation Viewer, from the Simulation menu, click
Block Parameters. A Block Parameters dialog box opens. The Open VRML
viewer automatically check box should be selected by default. When you double-
click the VR Sink block, this selection enables the virtual world window to open.
2
In the Simulink window, from the Simulation menu, click Run. (Alternatively, in
the Simulink 3D Animation Viewer, from the Simulation menu, click Start.)
A simulation starts running, and the virtual world is animated using signal data
from the simulation.