User`s guide
3 Simulink Interface
3-2
Virtual World Connection to a Model
In this section...
“Add a Simulink 3D Animation Block” on page 3-2
“Changing the Virtual World Associated with a Simulink Block” on page 3-8
Add a Simulink 3D Animation Block
To visualize a dynamic system simulation, connect a Simulink block diagram to a virtual
world. The example in this section explains how to display a simulated virtual world on
a host computer. This is the recommended way to view associated virtual worlds on the
host computer.
Simulating a Simulink model generates signal data for a dynamic system. By connecting
the Simulink model to a virtual world, you can use this data to control and animate the
virtual world.
After you create a virtual world and a Simulink model, you can connect the two with
Simulink 3D Animation blocks. The example in this procedure simulates a plane taking
off and lets you view it in a virtual world.
Note The examples in this topic are based on the Simulink 3D Animation default viewer.
1
In the MATLAB Command Window, type
vrtut2
A Simulink model opens without a Simulink 3D Animation block that connects the
model to a virtual world.