LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting multiple files by a single Button

Solved!
Go to solution

Hello can someone please help me with how to select automatically 2 array text files for two different arrays at a single button press.please.

0 Kudos
Message 1 of 18
(4,872 Views)

Are you talking about a file dialog? How does a single press select two files? Are the two file names static and known?

 

Please attach some simplified code so we better understand your needs. Thanks!

0 Kudos
Message 2 of 18
(4,861 Views)

I'm having these two files I wanted to select them at once not one at a time. If I select choose file then I have to select a folder and it will select both of the data at a single click to that folder. Can you please tell how to.1505977159089722499344.jpg

0 Kudos
Message 3 of 18
(4,803 Views)

Hi Mayur,

 

If I select choose file then I have to select a folder and it will select both of the data at a single click to that folder.

When you just want to select the folder that implies there are either (1) just two files in the folder or (2) the file names are fixed and known.

- In case (1) you use ListFolder to get an array of filenames of the files in your folder. As there are just two files you can work with them as intended.

- With case (2) you use the folder path to simply BuildPath with your known file names…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 18
(4,797 Views)

Can you please show me this with a vi or photo please.

0 Kudos
Message 5 of 18
(4,795 Views)

Im having 2nd case

0 Kudos
Message 6 of 18
(4,785 Views)

Hi Mayur,

 

you really need help on using the BuildPath function?

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 18
(4,778 Views)

I've done that before but I can't able to select a folder

0 Kudos
Message 8 of 18
(4,774 Views)

Hi Mayur,

 

place a path control.

Right click this control and select "browse options".

Set it to allow only existing folders…

 

Do you read the LabVIEW help from time to time?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 18
(4,760 Views)

1505985093091-856571008.jpgthis is happening after doing that. I connected a indicator to it and it is reading it there.

0 Kudos
Message 10 of 18
(4,749 Views)