LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean text

Hello,

I have an array of clusters. Each cluster is containing four elements: LED, Button, a numeric field and a string field as I attach here. Then I want to add clusters of this type to the array and also I want to modify the boolean text of each button of the cluster. How can I do this?

Thanks,

ToNi.

PS. I use LV 7.0 Express.
0 Kudos
Message 1 of 6
(3,388 Views)
Hi again,

What I want to do is to assign different boolean text to each button. I attach you an example, but in this case when I modify the boolean text of a button, all them change too. I want different names for each one. How can do this?

Thanks,

ToNi.
0 Kudos
Message 2 of 6
(3,366 Views)
As I have known you can not do that this way ,because every element in your array with the same property,with property node,if you change the property of one element,the others may be changed the same.
 
To solve this problem,you may create another big cluster and make the cluster you have made as elements,by this way you can modify the elements property alonely.
陈树学
QQ:276509891 .
EMAIL:CSXCS_366@126.COM
qq群:78561268 80754347 37591940
http://labview.weebly.com/
新书《LabVIEW实用工具详解》已经发售,敬请关注。
0 Kudos
Message 3 of 6
(3,352 Views)
The short answer is that you can't. All elements in the array share the same property values and that's why you can get a single reference to all elements - this is the very nature of arrays, only element values can be different.
This has been discussed many times.
A possible workaround is to hide the boolean text and add a string control to your cluster, overlapping the boolean button. As the string is now part of the cluster value, you may change it at will.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 4 of 6
(3,351 Views)

I agree with Paolo that the string control is a good way to handle this situation.  You need to limit the amount of text you allow in the string so it doesn't over run the button.  I have used the cluster method in the past and it works but in your case, it looks like the array is the important part and you would not be able to change this to a cluster.

 

Tom

0 Kudos
Message 5 of 6
(3,342 Views)
Of course, the overlapped string would prevent a part of the button to be sensible to the mouse click, so an even better solution (but with some work) would be customizing the string control and putting an invisible button over the string.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 6 of 6
(3,337 Views)