LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDM memory leak LV 8.5

Hi all,
I use LV 8.5 and in my application a lot of values are stored into a tdm file (not a tdms). But after a few days the application canceled because of "Not enough memory.....".
 
Then I've written a small tdm test vi and - oh my god ! The RAM usage increases and increases and increases..... why?
 
Maybe I've done something wrong in the source code (see attachment):
  1. open the tdm file ref
  2. loop and append the data (for a longer time)
  3. close the file ref

Can anyone help me, please?

Thanks
Hans

 

 

0 Kudos
Message 1 of 4
(2,936 Views)
Maybe you can put Open Storage and Close Storage also in the while loop and take a try. Post here if you still have any problem. Another workaround way is to use TDMS instead of TDM file.
0 Kudos
Message 2 of 4
(2,930 Views)
Hmm, sorry, first let me correct myself - don't put your Open Storage and Close Storage in the while loop.
Secondly, unfortunately, I'm afraid it's maybe an inherent problem with how TDM in LabVIEW works.
0 Kudos
Message 3 of 4
(2,925 Views)
Hi,
thanks for your replies.
 
I've talked to NI and they told me that with these tdm storage VIs it's not possible to do "data streaming"!
The problem is that the data is stored into the RAM memory till the tdm ref will be closed!
 
The tdms format should work.
 
Thanks
Hans
0 Kudos
Message 4 of 4
(2,897 Views)