LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multi data files arithmetic media

Hello. So..i have 120 data text files with 2 columns. i want to make from 5 to 5 files, arithmetic media for columns, i mean lets say file names are 1.txt(columns A1, B1) , 2.txt (A2, B2), 3.txt, ... 10.txt, ...120.txt. As result i have to create for 5 to 5 files, one file that should have the arithmetic media for (A1+A2+A3+A4+A5)/5 ans second column (B1+B2+B3+B4+B5)/5. But i want to do this for 120 files, so from 120 files should result 24 files with 5 to 5 files artihmatic media. How could i do this automathically? just chosse the directory with files, cause it-s hard to select first 5 files, the second 5 files, etc. 

the columns names are an example, columns don-t have names, they-re simply with numeric data, example: 

6.1384 0.0000
6.1357 0.0000
6.3582 0.0000
6.1585 0.0000
5.9201 0.0000
6.2191 0.0000
 

 

 

 

Thanks... 

0 Kudos
Message 1 of 2
(2,100 Views)

Hey florin.unga,

 

I'm not sure what you're trying to do in this application. Could you clarify a bit? Here is an example that shows you how to read data from a file in LabVIEW, that should be a good start on how to retrieve the numbers from the files, then you would just need to perform your calculations. Hope that helps!

John B.
Embedded Networks R&D
National Instruments
Certified LabVIEW Developer
0 Kudos
Message 2 of 2
(2,082 Views)