LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

virtual memory

I am doing data acquisition using a cDAQ9172 using analog and digital input cards. I am aquiring 17kB of data each second which gets written to tdm file. The write tdm file express VI is set to create a new file every 1 hour (1 hour at 17kB/sec = 61MB file size)
 
This program needs to run for at least 12 hours and must save all aquired data in tdm format creating 12 files of about 61Mb each.
 
When I run this program windows runs out of memory in about 3 1/2 hours and brings up a 'Windows has run out of vitual memory' error. In the windows task manager  I can see the page file has increased  to 2,170 MB (Maximum is set to 2,305 MB). In the 'process' tab I can also see LabVIEW.exe constantly increasing its memory usage.
 
I have used LabVIEW's 'Profile Performance and Memory' tool, but all vi's within my program remain consistant from when the program is started.
 
It seems that this program is increasing its memory usage over time and after about 3 1/2 hours will no longer function correctly.  Are there an other things I should be checking?
0 Kudos
Message 1 of 2
(2,987 Views)
Apparently it seems that somewhere in your application a copy is made of your data that is not deallocated and keep consuming more and more memory as long as the program runs. I seem to remember that there are some caveats in memory management inside LV VIs but I'm not exactly sure about it. You will find some specific help posting this same question in the LabVIEW forum: this one is dedicated to CVI.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,975 Views)