Create Accessor Dialog Box
- Updated2025-07-30
- 3 minute(s) read
From the Project Explorer window, right-click the LabVIEW class and select New»VI for Data Member Access from the shortcut menu to display this dialog box.
You also can right-click a data member in the private data control of the LabVIEW class and select Create Accessor from the shortcut menu to display this dialog box.
In LabVIEW, the data of a class is private, which means only VIs that are members of the class can access the data. Use the Create Accessor dialog box to create one or more accessor VIs that are members of the LabVIEW class and can provide caller VIs access to the class data. You can create an accessor VI to read from or write to class data. If you create an accessor VI to read from class data, LabVIEW unbundles the class data for you. If you create an accessor VI to write to class data, LabVIEW bundles the new value into the class data for you.
This dialog box includes the following components:
| Option | Description |
|---|---|
| Data member of X | Displays the data members of the LabVIEW class from which you can select. If you press the <Ctrl> key and select more than one data member, LabVIEW creates an accessor VI for each data member. |
| Access | Displays the levels of access to the LabVIEW class data you can select for the accessor VI.
|
| Create dynamic accessor | Creates a dynamic member VI. Use this option if you need a VI that you later can override. |
| Create static accessor | Creates a static member VI. Use this option if you do not need a VI that you later can override. |
| Make available through Property Nodes | Specifies that the selected data member is accessible through a Property Node. By selecting this option, you can wire a LabVIEW class to a Property Node to access the private data of the class. |
| Advanced Options | Displays advanced options for the new VIs.
|