main content

link to models -凯发k8网页登录

connect virtual reality worlds to simulink® and simscape™ multibody™ dynamic system models

visualize a dynamic system simulation by connecting a simulink block diagram or simscape multibody link to a virtual world. simulating the model generates signal data for a dynamic system, which you can use to control and animate the virtual world.

use the simulink 3d animation™ block library to connect to a simulink model to a virtual world. the vr sink block allows you to write values from simulink block ports to specified virtual world fields. to provide interactivity between a virtual world viewer and a simulink model, use a vr source block or other blocks such as a space mouse input block.

to view the behavior of a model created with the simscape multibody link software:

  1. build a model of a machine in the simulink interface using simscape multibody link blocks.

  2. create a detailed visual representation of your machine in a virtual world.

  3. connect the virtual world to the simscape multibody link body sensor outputs.

  4. view the behavior of the bodies in a virtual world viewer.

functions

open simulink block library for simulink 3d animation
create joystick object
create space mouse object
convert matlab coordinates to vr coordinates
convert vr coordinates to matlab coordinates
convert rotation from matrix to axis-angle representation
convert rotation from axis-angle to matrix representation

blocks

write data from simulink model to virtual world
read data from virtual world to simulink model
write data from simulink model to virtual world (video output port enabled)
trace trajectory of object in associated virtual scene
send unspecified value to simulink 3d animation block
expand input vectors into fully qualified virtual world field vectors
process input from asynchronous joystick device
process input from space mouse device
cross product of two 3-d vectors
output unit vector parallel to input vector
virtual world rotation between two 3-d vectors
convert rotation matrix to axis/angle rotation
convert array/angle rotation to rotation matrix
convert vr coordinates to matlab coordinates
convert matlab coordinates to vr coordinates
convert viewpoint direction to virtual world orientation

simulink models and generated code links

use virtual worlds that interface to simulink block diagrams and to matlab® objects and functions.

associate a simulink model with a virtual world and connect signals from the simulink model to the virtual world.

move or modify virtual world objects during simulation based on user input from the virtual world or events in the virtual world.

have a virtual world that you create with the simulink 3d animation product interact with code generated by the simulink coder™ product and compiled with a third-party c/c compiler in the simulink desktop real-time™ environment.

simscape multibody and imported cad model links

establish a live data connection between the model and the virtual world by creating associations between dynamic model object quantities and corresponding virtual world object properties.

use the 3d world editor or other editor to modify the results of cad tool export filters manually.

网站地图