Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Query Control Labels of Class Private Objects

 

When you create a class from the project explorer, there is a .ctl file that contains a "Cluster of class private data." In this cluster you can put controls that are private to the class itself. If you have a VI that is a member of this class, it can access the contents of 'Cluster of class private data' through an unbundle or unbundle by name function.

 

This example demonstrates how to use the VI server commands to access information regarding the contents of this 'Cluster of class private data.' In this case, the example queries the control label of the objects in the 'Cluster of class private data' given the file path of the .lvclass.

 

To run this example:

-Extract files from Class.zip

-Open Class.lvproj

-Open and Run Class.vi

-As a test, open Class.ctl and change the control labels

-Run Class.vi and see that the change is reflected in the example.

 

This example was written in LabVIEW 2009.

 

Class.png

 

 

Useful Links:

LabVIEW Object-Oriented Programming FAQ

Hope this helps.
-Ben

WaterlooLabs
Contributors