Thanks for the information.

I was able to reduce the memory usage of the program quite simply by,
as you recommended, reducing the number of data copies.

I used the VI memory profiler tool to find out that I had created 25
memory copies by converting each channel being acquired(25 channels)
from waveform to dbl type.  By acquiring the data in the first place
in dbl type I was able to avoid this step and save around 250 MB of
memory.

I also got rid of the Trigger and Gate function that I was using and
used a much simpler triggering method of my own.  As a result I was
able to reduce the memory requirements down to about 127 MB from
around 405 MB!  As an added bonus the program execution time went from
1.5 seconds down to less than 0.1 seconds.

Thanks again. Very helpful.

Reply via email to