07-20-2009 04:33 PM
As of now I have a VI running a signal averaging program using arrays as data types and the program takes up quite a bit of memory, I was curious to try it by sampling the data as waveform data types as opposed to an array.
The drop down menu from the DaqMXbase Read has no waveform options and for some reason "DAQmx Read (Analog 1D Wfm NChan NSamp).vi" is missing from the install. How can add this capability or where can I find this specific file?
Thanks.
Solved! Go to Solution.
07-20-2009 06:22 PM
07-24-2009 04:43 PM
Have you ever looked at how a waveform datatype is packaged? It uses an array to hold the data. In addition, it also uses a t0 to mark the start time and a dt to mark the sample period (not to mention the different attributes you can store in it). The waveform datatype uses slightly more memory than the array datatype for the same number of samples 🙂
If you want to decrease your memory footprint, the best course of action is to process fewer samples per iteration. Fewer samples means a shorter array means less memory.
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
07-30-2009 11:49 AM