Страница 1 из 1

Combining Data files

Добавлено: 13 авг 2008, 18:03
magreent
Hi,

I acquired data from my experiment in the form of a series of data files. The data in each column has 2 columns, time and amplitude. Now I want to recombine the data and analyze it. I tried using the merge signals and I get data added side by side. I need the data to continue so that I have a longer and single column with all my time records and likewise for my amplitude record. I have attached 2 of the data files as an example. I use labview 7.0

Thanks,

Mac T. Green.

Re: Combining Data files

Добавлено: 13 авг 2008, 18:34
Eugen Graf
May be you can use "Build Array" with Concatenate Inputs option?

Re: Combining Data files

Добавлено: 15 авг 2008, 19:26
magreent
I can combine three files as shown in the attached file.
I now need help in incorporating this scheme into a
loop so I can combine a large number of files.

Re: Combining Data files

Добавлено: 16 авг 2008, 23:06
Eugen Graf
If the count of files is unknown, you have to use a while loop, else use a for loop.

Therefore you should define a shift register (right click on the loop) where your signal will be saved, and in the loop use the build array VI to append the new signal from file to the shift register.

Should you show the signal live reading data from files?

If yes, so place your last two VIs into the loop, else out of the loop.

Re: Combining Data files

Добавлено: 18 авг 2008, 20:32
magreent
Still not able to incorporate my scheme into a loop.

Re: Combining Data files

Добавлено: 18 авг 2008, 20:38
Eugen Graf
Where is the problem? You will find the while loop in the Programming->Structures->While Loop.

You have to take only

Read LabVIEW Measurement File.vi
and Sample Compression.vi

into the loop. And you have to define a shift register (right klick on the loop).

Show me your block diagramm WITH the loop, so we can discuss your problems.