Visualization Animate Dialog Establishing Remote Connections navigation bar

Table of Contents > QUARC > User's Guide > Creating User Interfaces > Creating Visualizations

The 3D Viewer

The Quanser 3D Viewer is the component of the Visualization Blocks that does the 3D rendering of your models. It takes care of loading the scene file, meshes, and textures, and combines them as dictated by the scene file. The 3D viewer is also the client component of the server-client model to talk to your Simulink model for the source of animation. When the viewer is opened from Simulink, command-line options are specified to automatically open the scene file and establish a communications link, but this can also be done manually from either a command line or from the viewer menus.

The 3D Viewer Window

If you were to open the 3D Viewer from the Windows Start menu, then you would see something like the image below:

The 3D Viewer window without a scene file loaded.

If the viewer is opened manually, or if the menus are enabled in the Visualization Initialize interface, then the following menus are available. If the menu is disabled in the Visualization Initialize interface and the viewer is run from the model, then it is not possible to show the menu without manually opening the viewer. This allows for a final "production" interface which limits the interface controls to the designer's intentions. If the viewer is opened manually and you load a scene file with the menu option disabled, you can show the menu by moving your mouse near the top of the viewer in windowed and full screen windowed modes to popup the menu.

File

Interface

View

Window

Help

Command Line Interface

When the viewer is opened automatically from the Simulink model, it uses command line parameters to control many of the options that can be manually set from the menus. If you are running the viewer on a remote system from your target, then the same process can be used to simplify setup for a potential end-user by means of a Windows shortcut, or batch file. The following command line options are available:

   quanser_visualization.exe [/?] [/uri [uri]] [/sndsize [send buffer size]] [/rcvsize [receive buffer size]] [scene file]

If only the scene file is specified, then the scene file will be loaded, but no communications will be opened. You can then manually establish a connection to an animation server. Without any command-line options, the viewer will load without any scene file or attempted URI connection. You can then manually load a scene file and connect to an animation server as described with the menu commands.

 

navigation bar