Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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,919 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,915 Views)
It works with one boolean, BUT doesn't work to  boolean array. 
0 Kudos
Message 3 of 6
(4,905 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,899 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,894 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,888 Views)