LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Goks

Problem in Accessing Cluster's element of class private data by property node

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

When i created an Accessor for a Cluster of the class private data, i was able to access only the Cluster., but couldnt get the Individual elements of the cluster. If i want Individual element, i need to Unbundle the cluster again. But, I wish to get the Cluster's element too from the Property Node itself (Like how Unbundling of Cluster of Cluster can be done). So that, the Elements of Cluster will look like getting from a Sub Menu..

7 Comments
AristosQueue (NI)
NI Employee (retired)

You can do this today: Create multiple property accessor VIs, one for the cluster itself and one for each of the elements of the cluster, and arrange them in the menus with pull-rights (using the period notation for the names of the properties in the menus).

 

Yes, I can see how it would be useful if LV were to automatically incorporate the Unbundle node for interior cluster data types.

Goks
Member

Thanks a lot for your Reply., i found it useful but couldnt get the fullest out of it, so can u pls help me with it again..!!

 

I Renamed the Accessor’s Virtual Folder with the period notation as how u said, like below,

Accessors.png

 

But, I got only like this below.., I couldn’t get as Sub menu yet.., I got only like this below,

 

Cluster Sub menu not visible.png

 

Is this the way you said., or, had I misunderstood what you said? I didn’t understand still what you said about arranging the menus.. When I tried to pull the Cluster B.controls virtual folder within Cluster B’s Virtual folder, I couldn’t do it..

 

 i need to visualize something like this,

 

I need to have something like this.png

 

Thanks..

 

 

Amir_Y
Member

I'm not sure if that's helping, but you can do something else to get the desired menus if you don't use property node, but instead unbundle the class private data:

 class cluster.png

Goks
Member

Thanks for the reply and ya, using Unbundling, it can be done easily.. But, i need to Use Property Node to access the Accessors of the class private data.. Thats My requirement.So only trying it in Property Nodes.

 

Thanks..!!

Mr.Mike
NI Employee (retired)

Check out my post on Property Node Names on LAVA.  That will explain exactly how to do what you want.  Interestingly, this is the second time in 24 hours that someone has mentioned this to me.

-- Mike
Goks
Member

Ya..., Atlast i got it, with the help of this post.. Thanks a lot.. Thanks to all of you who have replied.. Especially Mr.Mike and AristosQueue....

 

Thank You.. Smiley Happy

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.