User`s guide

Virtual World Connection to a Model
3-3
2
From the Simulation menu, select Mode > Normal, then click Simulation > Run.
Observe the results of the simulation in the scope windows.
3
In the MATLAB Command Window, type
vrlib
The Simulink 3D Animation library opens.
4
From the Library window, drag and drop the VR Sink block to the Simulink
diagram. The VR Sink block writes data from the Simulink model to the virtual
world. You can then close the Library: vrlib window.
Now you are ready to select a virtual world for the visualization of your simulation.
A simple virtual world with a runway and a plane is in the VRML file vrtkoff.wrl,
located in the vrdemos folder.
5
In the Simulink model, double-click the block labeled VR Sink.
The Parameters: VR Sink dialog box opens.