LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to link a property node to 1 of 100 nodes without using a case structure?

I don't know if I am wording this correctly, but I do know that no search terms I've used have worked.

 

I have many indicators whose color I would change for each one only when that indicator is selected programmatically. At first I thought of using a case structure, but that would mean 100 cases would need to be added. Is there a way to call a property node for a specific indicator out of 100 without using a case structure? For example, once a match is found I would like to use the index of a while loop to select the indicator's property node, i.e. index = 1 and I want to call upon the property node for indicator P0001, index = 2 and call P0002, etc. Can this be done without using multiple property nodes in a case structure?

0 Kudos
Message 1 of 2
(2,436 Views)

Yes, if you build an array of references to all of the control you are interested in.

 

This Nugget shows ways of using control refs for the purposes of saving and restore the data but the technique used should give you some ideas.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 2
(2,432 Views)