cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting multiple files by a single Button

SOLVED
Mayur789
Member
Solved!

Selecting multiple files by a single Button

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.

Tags (1)
17 REPLIES 17
altenbach
Knight of NI

Re: Selecting multiple files by a single Button

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!

Highlighted
Mayur789
Member

Re: Selecting multiple files by a single Button

Message contains an image

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

GerdW
Knight of NI

Re: Selecting multiple files by a single Button

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
Mayur789
Member

Re: Selecting multiple files by a single Button

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

Mayur789
Member

Re: Selecting multiple files by a single Button

Im having 2nd case

GerdW
Knight of NI

Re: Selecting multiple files by a single Button

Message contains an image

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
Mayur789
Member

Re: Selecting multiple files by a single Button

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

GerdW
Knight of NI

Re: Selecting multiple files by a single Button

Message contains a hyperlink

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
Mayur789
Member

Re: Selecting multiple files by a single Button

Message contains an image

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