LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

opening unknown number of files

Does labView have the ability to open a variable number of files?
If so how would i go about doing this?
0 Kudos
Message 1 of 5
(2,832 Views)
Could you please clarify?  On the surface, the answer is yes, labview can open many files "at once".  What are you trying to do?  Are you referring to a file dialog box?

Paul
0 Kudos
Message 2 of 5
(2,828 Views)
i want to pass a variable number into a labview program, lets call it MyNumber
and i would like to open MyNumber number of files.

on one execution lets say MyNumber was 7 so i would like to open 7 files.
but the next time it is run if MyNumber was 2 i would only open 2 files.
0 Kudos
Message 3 of 5
(2,824 Views)
pardon my ignorance... and do WHAT with these files? where does it get the file paths?  I mean after all, lay a file open within a for loop.  wire your number of files to the N terminal.  Then, knowing nothing else... it will prompt the user N number of times to select a file... You will then have opened N file references and have an array of references, if you wire the reference numbers to the edge of your while loop.  Does that accomplish your task?
 I really would like to help, but you have given no information to work with, to allow us to help you. If we knew what your intended functionality is, then we can suggest specific implementations to meet your needs... Otherwise this thread is quickly going to be 30 posts long, frustrating you with no answers and Us, cause we have no idea what you are trying to do.

Message Edited by Stradis on 08-21-2007 11:39 PM


Paul
0 Kudos
Message 4 of 5
(2,821 Views)
LabVIEW can open as many files as you want you want (within OS imposed limits). All you need to do is write a program to do so. If you know how to open one file, just repeat the same (e.g. in a loop) for multiple files.
 
Paul is right, you should give us a bit more information. Opening a file really does nothing useful unless you also want to read from or write to it. You should also remember to close the files when done.
0 Kudos
Message 5 of 5
(2,790 Views)