LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

latch when released in Array

Hi,

I guess it is a well known topic but I just discover it.

In my GUI I have an array of clusters with some controls. Some of those controls are button with "Latch when released".

The problem is that since these are in an array in the end , the buttons are not released.

I attached a very simple example as demo. 

Do you have any workaround? Of course I could handle them programmatically and reset to "false", but it's a bit annoying.

 

Thanks! 

0 Kudos
Message 1 of 5
(531 Views)

Why not resetting programmatically? It's very simple code. Otherwise, if possible, use clusters instead of arrays.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 5
(511 Views)

If you have an array of clusters, it would help to attach an example that actually contains an array of clusters. 😄

 

In any case, here's a simple solution for an array. (It is scalable because it is independent of the array size.)

 

altenbach_0-1709047448854.png

 

 

Once you show us your code with an array of clusters, we can adapt the solution.

 

Of course you need to be aware that latch action booleans reset from the non-default state to the default state, so if you desire latch action booleans that are TRUE by default, you would do a "OR true" in a similar way.

0 Kudos
Message 3 of 5
(489 Views)

Thank you both.

 

Yes, I know I can reset the controls programmatically, it's just a bit more tedious. I just find weird that it works for single button and for cluster, but not when they are in arrays.

0 Kudos
Message 4 of 5
(474 Views)

@logatto wrote:

. I just find weird that it works for single button and for cluster, but not when they are in arrays.


We'll it's been like that since the beginning and I am sure there is probably a good reason for this design decision. 😄

 

 

0 Kudos
Message 5 of 5
(465 Views)