User`s guide
VR Source
9-23
VR Source
Read data from virtual world to Simulink model
Library
Simulink 3D Animation
Description
The VR Source provides access to virtual world fields, as chosen in the Block Parameters
dialog box as input signals during simulation.
The VR Source block supports several activities. For example, use the VR Source block
to:
• Provide interactivity between a user navigating the virtual world and the Simulink
model. The VR Source block can register user interaction with the virtual world. The
block can pass to the model those values which then can affect the simulation of the
model.
• Read into the model events from the virtual world, such as time ticks or outputs from
scripts.
• Read into the model static information about the virtual world (for example, the size
of a box defined in the VRML file).
• Access values of 3D object nodes that are not driven by simulation, but whose
monitoring is essential.
For an example of how to use the VR Source block, see the Set the Setpoint
subsystem in the vrcrane_panel example.
Note: The current internal viewer window (vrfigure) properties are saved together
with the Simulink model. The next time that you open the model, the internal viewer