10-04-2011 11:58 AM
I am streaming binary waveforms from my 5132 USB digitizer to disk, which is great. However my happiness is short-lived because I am about to have to read and unpack these files into Root/C++ on Unix for signal processing.
Can anyone give me a hint as to what the format of these files is, and thus how I can read them with a piece of (possibly) hand-written C++ code?
Or, should I do something like unpack the waveform format inside my C#.NET code (NI example attached) and then stream it to file in a format that I choose? If so, how can I take apart the waveform structure?
10-04-2011 12:12 PM - edited 10-04-2011 12:13 PM
As an addendum to my post above, could I reopen the file and then re-stream the scaledRecords to file in double format? And then read that file with my c++ analysis code? Or would that file be too bulky?
Any other suggestions would be great.
10-05-2011 01:09 PM
Another addendum - it looks like reading the waveform back into the C# code and calling scaleRecords to unpack it is not going to work for large (32 MB) waveforms. The arrays are too big and cause an OutOfMemoryException. So I am still looking for information on how to read in the binary waveform file, one sample at a time (as opposed to the entire 32 MB waveform). Or am I missing something more obvious?
10-05-2011 07:26 PM
Please cancel this particular thread. I am making much more progress after reading the recent related thread at http://forums.ni.com/t5/High-Speed-Digitizers/How-