Use a G Type document with class functionality to define the fields and methods of a class. A class object on the diagram of a VI can have a specific value for each field and can perform each method on the class G Type document.
Complete the following steps to create a class using a G Type document.
|VI for data member access||Create an interface that other parts of your program can use to read or write to a class field.|
|VI from dynamic dispatch template||Create a version of a VI specific to the class. The program chooses the version of the VI to execute at run time based on the object the VI input accepts.|
|VI from static dispatch template||Create a VI that has the same functionality for all class objects it accepts.|
|VI for override||Create a VI that overrides a method on the Member List of a parent class in your project.|
|Blank VI||Create an empty VI for the class.|
|Class Property||Create a property that can use VIs you create to access fields on the Data view.|