LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read multiple files in folder and append data to one file

Solved!
Go to solution
Thanks for this, Can you please send me file made in version 8.2
0 Kudos
Message 11 of 22
(3,096 Views)

Hi There,

 

I am also trying to get some kind of progress bar in my front panel. My program has six steps and i used "flat sequence structure" for each step. I am wondering is there a way to use slide on front panel and increment its value after each step. Also is there a way to use string indicator on front and change input when data progress to next flat sequence structure. I tried using progress bar from NI website but it works with for loop only and i do not have for loop in my program.

Thanks in advance

Yogesh 

0 Kudos
Message 12 of 22
(3,090 Views)
Find the Vis in 8.0. Start a new thread and send the vi which u done.
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 13 of 22
(3,087 Views)

 Hi,

 

 I used the vi that you provided but it copied the same files twice

 Can I know where did I do wrong? or did I misunderstood something?

 

 

 Thanks

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 14 of 22
(2,957 Views)

I tested its not doing as you mentioned.Check the attachment.

Note: Dont keep the VI in the same folder, where the files need to concatenated.

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 15 of 22
(2,940 Views)

hrmm.. this is weird. I still get abcdefabcdef 

 I shouldn't be getting that, but only abcdef, right?

 

 

 

0 Kudos
Message 16 of 22
(2,925 Views)
I am getting abcdef only. After twice running the code only you will get abcdefabcdef. Smiley Wink
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 17 of 22
(2,901 Views)

Hello,

I know it has been a while since this topic has been discussed, but I have a similar problem. I have several thousand .txt files which I need to analyze (RMS and mean power frequency, specifically) and write to a single .txt file. I would like to be able to perform a batch read, where the program reads all of the files in the folder, and appends them to a single spreadsheet. It would save me a lot of time if I didn't have to continuously read from spreadsheet and write to spreadsheet over and over. I have attached the VIs I am using. I would really appreciate it if anybody could help me out...spent a lot of time trying to figure this out.

0 Kudos
Message 18 of 22
(2,644 Views)

I don't understand your comment how "it would save me a lot of time if I didn't have to continuously read from spreadsheet and write to spreadsheet over and over."

 

In what way would it take a lot of time?  If you feed a list of filenames into a For Loop as an Array of Paths, LabVIEW does all the work for you.  It probably won't take any longer than reading one large file.

0 Kudos
Message 19 of 22
(2,624 Views)

Hi this is an example that does the same. It reads the text files and saves them to a Spreadsheet file. Its as simple as you can get. The file is saved in the folder containing the VI. 

 

After reading Ravens reply: Yeah come to think of it, LabVIEW doesnt care if you give a 100 files to read or one big file. It should have any problems reading it.

 

PS: Thanks to Baji since i used his uploaded zip file.

LabVIEW 8.2,8.6,2009...still learning 😛
0 Kudos
Message 20 of 22
(2,619 Views)