07-29-2015 04:27 PM
Hi,
In one folder, I have many (300+) files each with two columns of data. The files are named in numerical order: File1.txt, File2.txt...File100.txt. I would like to combine the files so that the columns of File2.txt fall under the columns of File1.txt.
Say File1.txt = 1 2
2 4
And File2.txt = 3 6
4 8
The combined file should read: 1 2
2 4
3 6
4 8
The files are all tab delimited.
I have started a VI that I think to be in the right direction, but there is an error currently in wiring connections. Could you please tell me the problem with my VI or, perhaps, suggets a better method for accomplishing this task?
Thanks,
M
Solved! Go to Solution.
07-29-2015 04:58 PM - edited 07-29-2015 05:00 PM
Right-click the tunnel on the right side of your For loop and select Tunnel Mode > Concatenating.
P.S.
This is all you need:
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-29-2015 05:20 PM
I do not have the option to choose the tunnel mode, I am using LabView 2011. If I disable indexing on the right side of the loop, it allows for the array to be passed to the write to spreadsheet node but only writes the first of the files.
07-29-2015 05:21 PM - edited 07-29-2015 05:24 PM
if you're using LabVIEW 2011 you might need to do this instead.
Tunel modes have been added in 2013.
07-29-2015 05:30 PM
The shift registers did the trick. Thanks for the help!
05-18-2022 03:44 AM
Could you please share the VI?