annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Cluster of buttons

Risolto!
Vai alla soluzione

Hi guys,

 

I need some help. In my example below, there are two page tabs with a cluster of three buttons inside each tab. In the block diagram, I have a while loop with an event cluster with the Cluster 1 and Cluster 2 All Elements event selected. I also have a Cluster Class wired to a property node with the Controls[] property exposed. I am trying to edit the Boolean Text of the button I pressed.

 

Does anyone know how to do this? I can't seem to expose the propertes I need based on which button I've clicked on. I hope I do not have to have an event for every button that is in each cluster. That would suck.

 

Any points in the right direction would be greatly appreciated.

 

P.S. I am using this instead of uploading my VI that has some SubVIs with it and each cluster has a different number of buttons associated with each cluster.

0 Kudos
Messaggio 1 di 3
4.475Visualizzazioni
Soluzione
Accettato da autore argomento Eric1977

Okay so here is what you can do.  Get the reference of the cluster control that was changed.  Then read the old and previous value to see what boolean changed value.  Then get the control references in the cluster and pull out the reference to the control that had its value change.  Then cast it to a boolean class, and change the text.  Now if you will want some error checking, because you may have non booleans in your cluster.

Messaggio 2 di 3
4.466Visualizzazioni

Hooovahh...YOU ARE THE FREAKING MAN! Thanks for the solution!

 

0 Kudos
Messaggio 3 di 3
4.451Visualizzazioni