07-08-2011 07:06 AM
Hi,
I'm fairly new to labview classes and am wondering if it is possible to make public or read the value coming from a lvclass control.
If I highlight the control all the values are listed as private and I can't unbundle the class, of course once I make a vi a member of the lvclass I can unbundle the class. However there are two elements that I want o be globally available, is this possible?
Sean
07-08-2011 07:32 AM
07-08-2011 07:55 AM
Thanks for the feedback Taki1999 but I don't appear to have that option.
I am using labview 2010 Full Development System.
If I right click on the ctl in the lvclass the "Create Accessor" option does not appear.
If I open the .ctl right click on the ctl in the lvclass the "Create Accessor" option does not appear.
If I open the .ctl and right click on the cluster in the .ctl the "Create Accessor" option does not appear.
Maybe there is a different way to do it in 2010?
SEan
07-08-2011 08:19 AM
You need to select your class, not the ctl.
This is the same thing as making a member vi for the class, it's just a shortcut for making a .vi that can output the private date.
( The way LabVIEW has implemented the OOP, all class attributes are private. And there are no way to make them public or protected. The only way to access the data from outside is by making a Accessor. )
Here are some reading: http://zone.ni.com/devzone/cda/tut/p/id/3574