From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Development Best Practices Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 3D Programming using Object Oriented Design

All,

Please enjoy the attached example progarm.

Motivation:

I wanted to create an example program which would showcase object oriented design capabilities within LabVIEW while at the same time showcasing advanced architectures including the state machine and the producer consumer loop. Of course this code is provided without warranty (express nor implied) a.k.a. "use at own risk".

An example of the program in action: http://www.youtube.com/watch?v=ASqgsISM0Uc

Design Patterns Used:

Object Oriented Programming

State Machines

Producer Consumer Loops

There are tester programs scattered throughout the project.

How to run:

  1. Download and unzip the attached.
  2. Open the file "3D Object Sandbox.lvproj"
  3. Open "/Project Files/3D Space Explorer/Event Handler State Machine/Main.vi".
  4. Run. The texture references should be stored relative to the project directory.

Using the mouse, click on the 3D picture control to move the space ship about. You can zoom in our out using the slider. You can create a new universe by clicking the create world button. You can also quit the program by pressing quit.

Questions / Comments?

Please feel free to email me: evan.robinson@ni.com

Screen Capture

3D Space Explorer.JPG

Video

--

Evan Robinson

Field Engineer | Western PA and WV | National Instruments

email: evan.robinson@ni.com

Message 1 of 1
(9,397 Views)