LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a selector from an array of paths

Solved!
Go to solution

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.

0 Kudos
Message 1 of 8
(631 Views)

I attach the files.

Download All
0 Kudos
Message 2 of 8
(629 Views)

If your question is related to GUI, then may be ListBox is what you needed:

sel.png

with appropriate selection mode of course:

Screenshot 2024-03-04 12.31.26.png

Message 3 of 8
(620 Views)

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.

0 Kudos
Message 4 of 8
(596 Views)

@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.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 8
(553 Views)
Solution
Accepted by xespizua

@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:

selall.png

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.

Message 6 of 8
(534 Views)

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.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 7 of 8
(524 Views)

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.

0 Kudos
Message 8 of 8
(485 Views)