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.
image.png

Polymorphism

How to create a class in LabVIEW

image.png
Dynamic Dispatch VIs are ones that child classes can Override(Change the Functionality).
image.png
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

image.png
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.
image.png

Practise

  1. You can download NI GOOP Development Suite by VIPM.

image.png

  1. New Project - Click UML icon

image.png

  1. New Class - Put Rec - Double Click

image.png

  1. This tool will generate some VIs(class\property\method) automatically.