Combining Data files

File I/O & Databases
Ответить
magreent
beginner
beginner
Сообщения: 14
Зарегистрирован: 19 мар 2008, 01:57
Версия LabVIEW: 7.1
Откуда: United States
Контактная информация:

Combining Data files

Сообщение 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.
Вложения
data_001.txt
(524.49 КБ) 366 скачиваний
data_002.txt
(533.92 КБ) 361 скачивание
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: Combining Data files

Сообщение Eugen Graf »

May be you can use "Build Array" with Concatenate Inputs option?
magreent
beginner
beginner
Сообщения: 14
Зарегистрирован: 19 мар 2008, 01:57
Версия LabVIEW: 7.1
Откуда: United States
Контактная информация:

Re: Combining Data files

Сообщение 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.
Вложения
FileOpen7.vi
(1.09 МБ) 398 скачиваний
data_001.txt
(524.49 КБ) 339 скачиваний
data_002.txt
(533.92 КБ) 348 скачиваний
data_003.txt
(540.48 КБ) 360 скачиваний
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: Combining Data files

Сообщение 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.
magreent
beginner
beginner
Сообщения: 14
Зарегистрирован: 19 мар 2008, 01:57
Версия LabVIEW: 7.1
Откуда: United States
Контактная информация:

Re: Combining Data files

Сообщение magreent »

Still not able to incorporate my scheme into a loop.
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: Combining Data files

Сообщение 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.
Ответить

Вернуться в «Data storage»