Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 203331

Re: Cannot get latch mechanical action on boolean button inside a cluster

$
0
0

 wrote:

@Blokk:

I certainly agree that using several latched buttons (or even one latched button) inside a cluster is not the optimal design choice.

I did not say this. I said it is a bad design not putting the Cluster control into a (single) Event case. There is nothing wrong to use several Boolean buttons (with "Latch until release" mechanical behaviour, as this is the common usage) inside a Cluster, I do this all the time!

 

I disagree that it is always a bad design choice to define events for elements of a cluster. I think defining events for elements of a cluster makes the code more readable.

Well, in my opinion the code is more readable if you use a single Event Case for a cluster, since we have this option. You read out the control in the proper place, and it is also very easy to compare old/new values and get the index of the button which value got changed. I cannot imagine a more simple way to do this right now...


 


Viewing all articles
Browse latest Browse all 203331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>