12-05-2006 11:58 AM
12-06-2006 09:17 AM
Here's what I'd do:
1. Avoid the digital waveform datatype entirely! The only time I ever use it is to make a quick-and-dirty digital waveform graph during my debugging. It has always seemed like a convoluted implementation to me. To avoid the digital waveform datatype, simply select a different instance of 'DAQmx Read', such as 1 Channel, N Samples, U32 (or something similar). This will give you your data as a simple 1D array of unsigned numerics.
2. Avoid strings too because they will also be memory intensive.
3. You might want to handle your huge # of samples a little at a time. Search for terms like "producer consumer" for some more info on how you can process / store your data on-the-fly without slowing down your acquisition task.
4. When processing arrays, make use of "Replace Array Subset" in a loop (along with a shift register) to be more memory efficient.
-Kevin P.
12-06-2006 11:49 AM