10-10-2019 10:21 AM
Figure A below is the VI I built and Figure B is the VI I'm copying. So basically, I want my VI to display the names as shown on Figube B below when I click. However, I am not getting the same results. I have attached both VIs and the notepad file that has the list of names.
Thanks for your help.
Figure A:
Figure B:
Solved! Go to Solution.
10-10-2019 10:32 AM
So this isn't the first post of your I've seen this in, so I'll comment now - you're using Build Path without a path input, and with an absolute "relative path" at the bottom. If you want to wire an explicit, absolute path, then just remove the Build Path node and use a "Path Constant". You can right click on these and "Browse for Path" which allows you to select the appropriate file.
Beyond that, I'm a little suspicious that the "Columns" control being used in the top VI is not the same as the "Column Configurations" being used for the Value Change event. Make sure they're the same control (i.e., that you only have 1 listbox!).
10-10-2019 10:44 AM
You need to use a Property Node to populate the names in your listbox.
10-10-2019 10:50 AM
You are never writing any items to your listbox. The template VI has the items set as defaults and there is no guarantee that they have any resemblance to whatever is read from the file.
After reading the file, write to the "item names" property of the listbox.
(Of course there are many other things wrong with your code fragment. I assume this is part of a real program architecture, such as a state machine.)
10-10-2019 10:50 AM
Reference to original thread about this topic https://forums.ni.com/t5/LabVIEW/Can-someone-please-tell-me-how-to-duplicate-this-simple-vi-What/m-p...
10-10-2019 10:57 AM - edited 10-10-2019 10:58 AM
And the previous thread: How do I make a table with a list of names using "Read from Text File Function" block without getti...
Can't quite believe I missed the missing property node to populate the Listbox... doh.
10-10-2019 11:04 AM
Thank you. You are awesome!!!!