Each time your program appends new data, it is considered to be a new record. When you use your read program, you get a single record. You always have options as a programmer. The least invasive option here is to leave your acquisition program alone and make some changes to your read program. I monsterized your read program a bit. I think it will do what you want. It reads out all the records while stitching together one big waveform for each channel.
Remember, the Alliance Members are here to help. We do this stuff every day.
Daniel L. Press
PrimeTest Corp.
www.primetest.com
PS - What's with the crazy local variable usage? Be careful with those!