09-07-2022 07:55 AM
Hello all
I'm currently trying to create an user interface, that can be filled out manually (and then possibly exported) or imported from csv file.
The data is held in an array of clusters and the cluster holds all the different data types i need.
The problem i'm having is that the "Analysis Protocol" should be a ring or combo box or similar, which updates it's selection when the program is ran, by reading values from database.
Thing is, i can't do this by reading and writing a cluster, that only updates the value that is shown and not the selection.
Is there a way to update this selection inside the cluster?
Solved! Go to Solution.
09-07-2022 08:13 AM
Hi AeroSoul,
if you put any new string which is not included in the Combo Box, the string will show, but the values for selecting won't change in Combo Box.
So if you just give the correct values, such as "TEST" in your example, it will show the correct value from your select list.
Can you specify more, which concern you have if the method you are doing not doesn't fulfill your requirement?
Regards,
FrankenChino
09-07-2022 08:23 AM
What i want is to load a list of possible protocols from database and fill the combo box selection with that. The user would then be able to click on the combo box and select one of the available protocols.
What i can do at the moment is pre-fill the combo box with some values, that don't necessarily reflect what protocols the user will have available.
Hopefully i explained it better this time.
09-07-2022 08:28 AM
Hi AeroSOul,
you can apply the Invoke Node of Combo Box to append new string during the process of the program.
Regards,
FrankenChino
09-07-2022 08:33 AM
The combo box is part of a cluster, which is part of array. I couldn't find an invoke or property node that would allow me to update combo box that way. I know how to update combo box in itself (i usually use property node --> strings and values), just not inside a cluster inside an array.
09-07-2022 08:47 AM
Hi AeroSoul,
here is the solution,
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YH1ACAW&l=de-DE
Regards,
FrankenChino
09-07-2022 08:59 AM - edited 09-07-2022 09:05 AM
If you want to create a reference or a property/invoke node of an element that is visible on your front panel, you can just right-click on that control and select create / property node / strings[]
This way you get a property node inside a cluster inside an array. Keep in mind that the "strings[]" - list is a property of that control and is shared with all controls in that array
09-07-2022 09:03 AM
I made an example. If you double-click on the property node, LabVIEW highlights the right control.
09-07-2022 09:13 AM - edited 09-07-2022 09:21 AM
Edit: I would suggest to take Dave's solution. The references are more recommanded when multiply VIs are interacted.
Hi AeroSoul,
if you insist to do it in Cluster in Array, then here is the final solution.
I think you might be struggling with that, here is the solution due to your project.
Step by Step:
Regards,
FrankenChino
09-08-2022 02:11 AM
@daveTW wrote:
If you want to create a reference or a property/invoke node of an element that is visible on your front panel, you can just right-click on that control and select create / property node / strings[]
Well, that was easy...
Thank you both for your help.
One question about the reference solution, i obtained reference to array, then to cluster, but i could not obtain a working reference to the combo box. What am i doing wrong?
Obtaining a reference directly to combobox without first getting cluster reference didn't work either.