User`s guide
3 Simulink Interface
3-26
VR Source Block Input to Simulink Models
The VR Source reads values from virtual world fields specified in the Block Parameters
dialog box and inputs their values.
Use the VR Source block to provide interactivity between a user navigating the virtual
world and the Simulink model. The VR Source block registers user interactions with the
virtual world and passes to the model values that can affect the simulation of the model.
For example, you can specify setpoints in the virtual world, so that user can specify
the location of a virtual world object interactively. The simulation then responds to the
object's changed location. The VR Source block can read into the model events from the
virtual world, such as time ticks or outputs from scripts. The VR Source block can also
read into the model static information about the virtual world (for example, the size of a
box defined in the VRML file).
For an example of how to use the VR Sink block, see Magnetic Levitation Model.