Example Code

LabVIEW Object Oriented Programming - Car example

Code and Documents

Attachment

Overview:
This VI shows how to implement LabVIEW Object Oriented Programming.

Description:
In this example, we are dealing with a "Car" Class which can contain many different types of sub-classes (In this case, "Honda" and "Toyota")
Because these sub-classes inherent from the Car Class, the application can be built much more efficiently by creating common methods and class specific methods. For example, any car can be turned on, but perhaps only one specific type of car has power steering or heated seats.

Requirements:
LabVIEW Base Development System 2012 (or compatible)

Steps to Implement or Execute Code:
1. Run the VI.
2. Modify the controls to compare the behavior.

 

Additional Information or References:
block diagram LVOOP.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.