User`s guide

5 Build Virtual Reality Worlds
5-10
4
From the MATLAB Command Window, type
vrlib
The Simulink 3D Animation library opens.
5
From the Library window, drag and drop the VR Sink block to the Simulink
diagram. You can then close the Library Browser window.
Your next task is to create a virtual world that you will associate with the VR Sink block.
See “Open a New Virtual World” on page 5-10.
Open a New Virtual World
You must create a virtual world to connect to a Simulink model for visualizing signals.
This procedure opens a new virtual world, in which you add nodes for visualizing the
signals of the model vrtut3. The connection between the virtual world and the Simulink
model requires that the model includes a VR Sink block, as described in “Add a Simulink
3D Animation Block” on page 5-9.
1
Start the 3D World Editor with an empty virtual world. From the MATLAB
Toolstrip, in the Apps tab, in the Simulation Graphics and Reporting section,
click 3D World Editor.
The 3D World Editor displays: