LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bin files concatenated

Has anyone read in two .bin files and concatenated them then write out to a .bin file?  I have tried the conversion to char string and back to binnary, but that does't seem to work.
 
Thanks for any help
 
Scott
 
Robot Very Happy
0 Kudos
Message 1 of 4
(2,257 Views)
Scott,
You can just read the binary files in as strings, concatenate them and then write them back out as a longer string. I don't quiet understand what you mean by converting it back to binary. Just feeding it into a write function as a string should work fine.
 
Regards,
 
Jack J.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,241 Views)

If I use the string functions, and save the file as a .bin, I shouldn't have any problems?  I have a version of doing that, but wasn't sure changing to string could effect my file.  I'm trying to combine 12 .bin files and add some extra 0's in between them then save to one big file.

I have started a new version using the "Open i16 file" and "Write i16 file", I than send the 1D array to the output file and then open the next file, and send to the same output file but making sure that I append the file.

I appreciate the help.

 

Thanks

Scott

0 Kudos
Message 3 of 4
(2,237 Views)
Yeap. That will work as well.
0 Kudos
Message 4 of 4
(2,233 Views)