LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change boolean text of boolean array programatically?

Hi,

I have a boolean array. How to change the boolean text programatically for all the array element? 


Thanks a lot for any help.

Anne


Message 1 of 6
(4,747 Views)
Just creat a property node with property "BoolText.Text" and write your string to it.
 
Be aware that all elements in the array will have the same text. Properties cannot differ between array elements, just the value.
0 Kudos
Message 2 of 6
(4,743 Views)
It works with one boolean, BUT doesn't work to  boolean array. 
0 Kudos
Message 3 of 6
(4,733 Views)


Anne Zuo wrote:
It works with one boolean, BUT doesn't work to  boolean array. 

"Doesn't work" is not specific enough. In what way does it not work (no such property, broken wire, boolean text does not actually change, ...etc)? 
 
Yes, it works just fine.
 
RIght-click on one of the array elements and select "create ...property node...boolean text...text"
Message 4 of 6
(4,727 Views)
Yes. You are right. It works. Thank you.


I just did it in a wrong way. I created a reference of the boolean array, and then created property node of the reference, then couldn't find the right property. So silly.

Thanks a lot.




Message 5 of 6
(4,722 Views)
If you already have the property node, just link it to the array element instead of the array container.
 
To do so:
 
right-click the property node... link to...(select array container name)...(select array element name).
 
Now the desired property will be available. 🙂
Message 6 of 6
(4,716 Views)