Create Accessor Dialog Box

Requires: Base Development System

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.

Note  You must define the private data of the LabVIEW class before you can use 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.

Note  You must save a new LabVIEW class before using this dialog box to create accessor VIs. LabVIEW dims the VI for Data Member Access and Create Accessor options if you have not saved a new class.

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:

Note  You can use this dialog box to create VIs to read or write single elements of an array in the private data control. If you select an array element, LabVIEW creates an accessor VI with a control that contains the array element and a control that contains either the array element index (one-dimensional arrays) or an array of indexes (arrays with more than one dimension). Creating accessor VIs to access an array element is particularly useful for modifying elements in very large arrays without creating unnecessary copies of the array.