LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change control values on button press

Solved!
Go to solution
For that many items, I would make a single input of the variant datatype.  Have 50 different actions in your enum defining which item you want to update.  In the respective case for each action, use a Variant to Data function to convert it to the right datatype and update the appropriate item in the cluster.
Message 11 of 14
(1,121 Views)
Another alternative would be to use an array of variants (if the data is different) or an array of clusters (all the entries use the same set of data, just multiple versions of it) and then use an index or some ID to access the data you are interested. I will see if I could put together a simple example.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 12 of 14
(1,103 Views)
Solution
Accepted by Siniz
As promised, here is a simple example. I included both an 8.6 and 8.0 versions of the example.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Download All
0 Kudos
Message 13 of 14
(1,098 Views)
Thanks guys, and yet again Mark! That is coming in handy 🙂
0 Kudos
Message 14 of 14
(1,072 Views)