Jump to content
koushik

Recover contiguous memory in sbrio 9605

Recommended Posts

Hello,

  I have lately run into a problem of insufficient memory. Basicallly the controller is ever running and i generate data and store it in .tdms file every x sec. and every shift (3 shifts in a day) i ftp the file to the host and delete the file. During accumalation of the data the ram continuosly decreases(contiguous memory also decreases as i have a lot of array manupilations and such).

 

I want to recover this contiguous memory at the end of the shift so that the next shift runs smoothly. this is observed because i saw lot of inconsistency in the data file. Is there a vi which will free up ram and defragment it?.

 

I cannot use preallocated array because i dont know before hand how many data points i need to store. the data that will be put is in variable time.

 

Thanks in advance.

Edited by koushik

Share this post


Link to post
Share on other sites
I cannot use preallocated array because i dont know before hand how many data points i need to store. the data that will be put is in variable time.

Well, there may be other issues, but if the array is large, then using, for instance, Build Array to add each element each time will result in memory issues.  Even if the final array size is unknown, it is better from the memory perspective to initialize a "large enough" array first and replace elements thereafter. If the application fills the array, it can create a new array. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.