Products & Services Solutions Academia Support User Community Company

Learn more about Simulink 3D Animation   

vrphysmod - Add virtual reality visualization framework to block diagrams

Syntax

vrphysmod(vrmlfile, model)
vrphysmod(vrmlfile, subsystem)

Description

vrphysmod(vrmlfile, model) or vrphysmod(vrmlfile, subsystem) updates the model or subsystem that the SimMechanics mech_import function generates. As necessary, vrphysmod adds additional blocks to visualize the mechanical system in virtual reality. You can then save, rename, modify, and run the model. The .wrl extension for vrmlfile is optional. If the second argument is a subsystem, the model that contains it must be open before calling this function. The association between mechanical system bodies and corresponding VRML nodes found in the VRML file is based on the name correspondence.

Examples

To update the model four_link using the VRML file four_link.wrl:

vrphysmod('four_link.wrl', 'four_link');

To update the subsystem four_link/FOURLINK_ASM using the VRML file four_link.wrl, ensure that the model that contains the subsystem is open, then:

vrphysmod('four_link.wrl', 'four_link/FOURLINK_ASM');

To update the current system using the VRML file four_link.wrl:

vrphysmod('four_link.wrl', gcs);

See Also

mech_import

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS