Labview 3d Control Simulation Using Solidworks 3d Models 4
Labview 3d Control Simulation Using Solidworks 3d Models 4
Abstract
Importing a SolidWorks VRML into LabVIEW gives engineers and students the ability to integrate
the power of SolidWorks 3D computer aided design with LabVIEW simulation. It is extremely useful
for test and simulation applications that require complex visualization of a 3D model. To combine 3D
visualization with simulation, you can use a combination of LabVIEW, the Simulation Module and the
3D Picture Control Toolkit.
http://creativecommons.org/licenses/by/2.0/
1 http://www.quanser.com
2 See the le at <http://cnx.org/content/m12977/latest/LIP_Demo.zip>
3 See the le at <http://cnx.org/content/m12977/latest/http://zone.ni.com/devzone/cda/tut/p/id/4411>
http://cnx.org/content/m12977/1.4/
Figure 1: Matrix A,B,C, and D dene the controller for the simulation. The Acceration of Gravity
and Pendulum Length in centimeters can be cutomized by editing the plant model. The Array of inital
states allow the angle, angular velocity, and linear velocity variables to be dened before the simulation
is executed. The gains K1, K2, and K3 respresent the gain for the controller.
http://cnx.org/content/m12977/1.4/
Figure 2: This simulation utilizes the LabVIEW Simulation Module with the RK1 continuous time
solver. The controller is containined inside the 'Insert Control Code Here' box allowing students to
design their own unique controller while the plant model and 3D simulaiton model are preserved.
When downloading this VI, you must have a minimum of LabVIEW 8.0.1 with the LabVIEW Simulation Module installed, as well as the free 3D Picture Control Toolkit. This 3D simualtion is one of many
developed for educational purposes. Other demonstrations include the 3D helicopter, auto suspension, and
3D rotational inverted pendulum.
Once again use the Find Object.vi to create references for each object you would like move with the movement
VI's such as Translate Object To.vi and Rotate Object To.vi. The drawObject.vi creates the camera and its
controller as well as the light source. It also performs the scene rendering and scene drawing.
The top level VI is responsible for the simulation parameters and equations that describe the system.
The simulation dynamics can be altered on the y using the CD Create State-Space Model.vi located in the
Control Design Toolkit. This VI allows the user to enter variable formulae into the state-space matrices and
then alter the system very quickly by changing the variable values. Combined with the 3D picture control
toolkit, you can witness the visual eects of the variable values on the system immediately.
This roughly outlined method describes the basic functions needed to perform a LabVIEW simulation
with 3D visualization provided by SolidWorks VRML97 export. The VRML parsing is only necessary because
at the time of this writing, SolidWorks software does not provide object names and parent/child relationships
with VRML97 export.
http://cnx.org/content/m12977/1.4/