Three Attribute
Encapsulation
A class is a custom datatype and the methods that interact with that data. Encapsulation can help
Inheritance
Inheritance allows child classed to reuse the data and methods of a base class. The child class may choose to override or append to the functionality of the base class.
Polymorphism
How to create a class in LabVIEW
Dynamic Dispatch VIs are ones that child classes can Override(Change the Functionality).
We will create a class called the webcam class have it inherit from the camera class.
Make EPIC APIs Custom Icons and Wires
We need to right click on our class escape camera door LV class go to properties and this is going to bring up the class properties window.
Ctrl+Shift+Space(Open Quick Drop) Ctrl+Shift+W(Auto Wire&Clean Up)
Introduce Inheritance in LabVIEW
We can go new VIs for override and all of the dynamic dispatch methos from parent class appear here. Let’s select all of them and click ok.
Practise
- You can download NI GOOP Development Suite by VIPM.
- New Project - Click UML icon
- New Class - Put Rec - Double Click
- This tool will generate some VIs(class\property\method) automatically.