LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open multiple files in Labview?

I want to open multiple files in labview by selecting multiple files,then read them? Can I do this in Labview 7.0?
0 Kudos
Message 1 of 12
(10,474 Views)
You can use the vi example here to get multiple names:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=506500000005000000C7640100&HTHREAD=000091335&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

Once you have the file names, you can use a for loop w/ a Read/Open file vi to open all the files.


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 2 of 12
(10,472 Views)
Hi,

Here's the windows way...

Regards,

Wiebe.

"keiylh" wrote in message
news:5065000000080000000CCA0000-1079395200000@exchange.ni.com...
> I want to open multiple files in labview by selecting multiple
> files,then read them? Can I do this in Labview 7.0?



[Attachment Multi File Dialog.llb, see below]
Message 3 of 12
(10,473 Views)
Hi Wiebe,

Just downloaded this, modified it slightly, and changed it to LV 6.1 using the LV 7 Eval. Edition.

Excellent work.

Here's my version for anyone else whio wants it.

Cheers

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 4 of 12
(10,474 Views)
This works great...
Thanks!
MichelB
0 Kudos
Message 5 of 12
(10,473 Views)

Hi,

I have tested your code. Great work!. I need to open 612 files simultaneously, when I try to open this number of files they don't open.

Can you help me?

Thanks and Best regards.

0 Kudos
Message 6 of 12
(10,060 Views)
What do you mean by "don't open" does it give an error of any sort or something like that. I ahve attached some code where I open 612 files write to them and close them. See what you can glean from it, and get back with me if you are still having problems.
Rick Kuhlman
0 Kudos
Message 7 of 12
(10,033 Views)

Hi Rick,

Thanks for your response. I can't open your code because my version of LabVIEW is 7.1. Can you translate your code to 7.1 version?

If I use the library included in the post, I can open the dialog box and I can select multiple files, then I get an array that contains the paths of the files selected. Then I use a "for structure" to index the array and extract the files information.

So, If I tried to open less than 256 files, there is no problem, everything is OK, the array is full of paths information. But If I try to open my 612 files, the result array is empty, with no paths information inside the array.

Thanks you very much!. I hope you can understand my expressions, my english is not the best I would like.

Best Regards.

P. M. Aspas

0 Kudos
Message 8 of 12
(10,003 Views)

Hi Rick,

Can you post your code saved for LV 7.1 ?

It ll be of immense help for me...

Regards,

- Partha ( CLD until Oct 2024 🙂 )
Message 9 of 12
(9,827 Views)
Hello Partha,
 
Here's the code in 7.1 - good luck!
 
Janell R | applications engineer
0 Kudos
Message 10 of 12
(9,797 Views)