LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Join two files

I am generating two LVM files, but I need to join them to make them one, how can I do it?

 

0 Kudos
Message 1 of 7
(395 Views)

It depends, how exactly you would like to join both. An easiest way probably is to read both, merge, then save, something like that:

signals1.png

Graphs:

signals2.png

0 Kudos
Message 2 of 7
(387 Views)

the idea is to do it as if it were a single file with a continuous acquisition. because I am dividing the acquisition.

0 Kudos
Message 3 of 7
(381 Views)

@Javo20200 wrote:

the idea is to do it as if it were a single file with a continuous acquisition. because I am dividing the acquisition.


Then you can use Append instead of Merge:

signals3.png

signals4.png

Message 4 of 7
(357 Views)

system exec Copy File1 File2 > File3

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 7
(293 Views)

@Yamaeda wrote:

system exec Copy File1 File2 > File3


This will not work (I guess), because you will get header in the middle of the data, please try yourself:

copy2.png

Please post your functional LabVIEW code (in additional, execution of the command

 

Copy File1 File2 > File3

 

will result copy of the File1 into File2 and the string " 1 file(s) copied." inside of File3 instead of joined content), I think.

0 Kudos
Message 6 of 7
(285 Views)

My bad, it should be copy test.txt+test2.txt test3.txt

Yes, it's a pure append which might result in headers in the middle

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(271 Views)