Only methods on the class member list can directly access and manipulate a class field value. However, you can create data
member access VIs that you can use to access class object data in a VI that is not on the Member List of the class.
Complete the following steps to create
read and write access member VIs for a field on the Data view of a class.
Right-click a class in the
Project Files tab and select
You must add a field to the Data view before you can create a VI for data member access.
Select the field the VI can access.
Select the type of
Access you want the VI to have.
||Creates a VI that can only read the value of the class field.
||Creates a VI that can only write a new value to the class field.
|Read and Write
||Creates one read VI and one write VI.
Call Behavior you want the VI to exhibit.
||The VI that executes at run time depends on what class object the VI accepts.
||The VI functionality is the same for all class objects it accepts.
To use the Property Node to access class object data on the diagram, select the
Make available through Property Nodes checkbox.
To include error handling as part of your VI, select the
Include error handling terminals checkbox.
Enabling the Property Node to access class object data automatically enables error handling terminals for the data access
The new data member access VIs appear on the class member list. They also appear
within the class on the Project Files tab.
Open the VI that is not on the class member list.
Add a data member access VI and a class object from the
Project Files tab onto the diagram.
To programmatically access the class object data, wire the class object on the diagram to the class object input of the data
access member VI.
If you selected
Make available through Property Nodes when creating the data member access VI, you can wire the class object to a property node on the diagram to access class