03-04-2024 05:16 AM
Hi all, LV beginner here,
I'm doing a program (VI) that receive an 1D array of paths and returns an 1D array with the selected paths/elements that i want to choose from that 1D array that i input previously.
I want a control where i can select the elements that i want to return from the full list of paths.
I' trying different ways but i don't know how to do it.
Im working with LV v17.
Thank in advance.
Solved! Go to Solution.
03-04-2024 05:17 AM
I attach the files.
03-04-2024 05:31 AM
If your question is related to GUI, then may be ListBox is what you needed:
with appropriate selection mode of course:
03-04-2024 06:05 AM - edited 03-04-2024 06:14 AM
Thank u, i think that the Listbox is what i was looking for.
But what i want is that from the array that i put at the beginning, select some elements or all of them (this would be another control i guess) and then with a button load them (i exit from the while loop with this control and the previous one), and then take the selected elements to the Open VI Reference.
03-04-2024 07:30 AM
@xespizua wrote:
Thank u, i think that the Listbox is what i was looking for.
But what i want is that from the array that i put at the beginning, select some elements or all of them (this would be another control i guess) and then with a button load them (i exit from the while loop with this control and the previous one), and then take the selected elements to the Open VI Reference.
That's basically what was posted. Just connect the Selected files to Open VI ref.
03-04-2024 08:19 AM
@xespizua wrote:
Thank u, i think that the Listbox is what i was looking for.
But what i want is that from the array that i put at the beginning, select some elements or all of them (this would be another control i guess) and then with a button load them (i exit from the while loop with this control and the previous one), and then take the selected elements to the Open VI Reference.
Then you can use it like this:
By the way - you don't need to wire "N" Input of the for loop for autoindexing - this will iterate in this particular over all array elements anyway.
03-04-2024 09:26 AM
When I want to present a list of files, I use a MultiColumn Listbox, putting the folder in the 1st column, and the filename in the 2nd column.
03-05-2024 06:14 AM
Thank u for all the solutions, in the end i picked the Andrey's one, although i also tried with Paul's and it also seemed that it could work, but i opted for Andrey's bc it was more what i was looking for.