LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A Class's Private Data and A Tab Control

Can tab controls go into a classes private data? I am trying to get one to drop into the classes private data cluster and it just won't go in. What is up with that?

 

Since it is a container is it not really considered to be data?

0 Kudos
Message 1 of 24
(3,724 Views)

The private data of a class is protected and not accessable outside of the class itself. This is a core feature of OO. If you want to access private data of a class you must provide accessor methods to read/set the data.

 

BTW, this is not something uniqeu to LabVIEW. This is an integral part of OO design.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 24
(3,721 Views)

I personally see this as more of a LV thing than an OO thing.  Fundamentally the class private data is a cluster and clusters are not allowed to have tab controls.  If you would like to change this, see here:

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-clusters-to-have-quot-pages-quot/idi-p/1481862

 

 

 

0 Kudos
Message 3 of 24
(3,716 Views)

@Darin.K wrote:

I personally see this as more of a LV thing than an OO thing.  Fundamentally the class private data is a cluster and clusters are not allowed to have tab controls.  If you would like to change this, see here:

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-clusters-to-have-quot-pages-quot/idi-p/1481862

 

 

 


A class's private data is not accessible outside of a class. This is basic OO so it doesn't matter if it is a cluster in LabVIEW or anything else. OO stipulates that private data as well as methods are protected and not accessible outside of the class.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 24
(3,712 Views)

@Mark_Yedinak wrote:


A class's private data is not accessible outside of a class. This is basic OO so it doesn't matter if it is a cluster in LabVIEW or anything else. OO stipulates that private data as well as methods are protected and not accessible outside of the class.

 


Who says anything about accessing the data outside of the class?  It sounds like the OP wants his private data cluster to have some organization by placing tabs inside the cluster which would not change the underlying data, just his way of looking at it.  As such I am simply stating that the limitation is not OO related, it is LV's implementation of OO (using clusters) combined with the implementation of Tabs which is causing the problem.

 

0 Kudos
Message 5 of 24
(3,708 Views)

@Darin.K wrote:

@Mark_Yedinak wrote:


A class's private data is not accessible outside of a class. This is basic OO so it doesn't matter if it is a cluster in LabVIEW or anything else. OO stipulates that private data as well as methods are protected and not accessible outside of the class.

 


Who says anything about accessing the data outside of the class?  It sounds like the OP wants his private data cluster to have some organization by placing tabs inside the cluster which would not change the underlying data, just his way of looking at it.  As such I am simply stating that the limitation is not OO related, it is LV's implementation of OO (using clusters) combined with the implementation of Tabs which is causing the problem.

 


Ah yes, you are right. I misread the post and thought he was asking to display the contents of the private in a tab control.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 24
(3,695 Views)