Defining the Private Data of a LabVIEW Class

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

You can add controls to the cluster in the private data control of a LabVIEW class to create a data type. Complete the following steps to define a LabVIEW private data control.

  1. Create a new LabVIEW class or open an existing class by selecting File»Open and navigating to the class you want to open.

    The private data control appears underneath the class icon in the Project Explorer window.
  2. Double-click the private data control. The Control Editor window appears.
  3. Add controls and indicators to the Cluster of class private data to define your data type, if necessary.

    Note Note  A private data control cannot contain an XControl.
  4. Select Edit»Make Current Values Default to set the default value for the entire cluster. LabVIEW sets the current values in each element as the default value for those elements.

    Note Note  The value you set as the default value of the private data control is the default value for all controls, indicators, and constants of the class type.
  5. Save the private data control.
Note Note  LabVIEW saves the private data control inside the .lvclass file. The control does not have a separate file on disk. Saving the private data control with the LabVIEW class definition helps to prevent user errors.


Not Helpful