04-25-2019 09:01 AM
Hello,
So I have created an array of clusters.
within the cluster are 2 comboboxes which I would like to initialise with a string array I have generated from 'plot_IO'. However I have no clue how proceed further to do that.
Would anybody be able to advise on how it, if it is at all possible.
Thanks.
Solved! Go to Solution.
04-25-2019 09:08 AM - edited 04-25-2019 09:09 AM
Hi sherzaad,
use the reference of the array to get a reference to its cluster element. Use that cluster reference to get the reference of the cluster elements. Search the combobox references among them and set their properties…
Or right-click the combobox on the FP and create a reference or property node.
(Keep in mind: in an array all elements share the same properties!)
04-25-2019 10:57 AM
Thank you GerdW for your reply.
sorry but still a newbie here... and still lost... Would you be able to elaborate more - maybe with an example - how to make use of these reference (are referring to creating a reference variable?)
I want all the array elements to be initialised with the same values so your solution should work for me (once I understand it! )
04-25-2019 11:37 AM
Find the control within the array on the front panel. Right-click the border of the combo box and select "Create ► Property Node ► Strings []".
Drop that on your block diagram somewhere. Right-click it and select "Change to Write". Then wire in an array of your strings for the drop-down.
04-25-2019 11:46 AM
If you attach your VI, then we can make a few (small) modifications to it and re-post it to show you how to do this. Please help us by attaching your code, saving us a lot of steps (and ensuring that we can use the appropriate version of LabVIEW that you need).
Bob Schor
04-26-2019 03:08 AM
Worked brilliantly. Thanks and Kudos!