VE_KVK Posted December 16, 2009 Report Share Posted December 16, 2009 Hi, I'm using cRIO9014 with LV 8.2.1. My application involves logging data from a device thro RS232 and save it to cRIO memory. What will happen if the memory (2GB) overflows? How to make the oldest data replaced with newest data? Pl help. Thanks Quote Link to comment
asbo Posted December 16, 2009 Report Share Posted December 16, 2009 I suspect when your memory overflows, you will get some pretty strange behavior, or your application will crash altogether. You could use a circular buffer to replace the oldest data with the newest. There's plenty of information about these (and a version to download) on NI's website. Quote Link to comment
GoGators Posted December 16, 2009 Report Share Posted December 16, 2009 or your application will crash altogether... Definitely should crash. At least that is what it does to me all the time. If you want too log your memory usage here is where their are VIs to do it. In LV2009 they are native. http://zone.ni.com/devzone/cda/epd/p/id/4952 Quote Link to comment
VE_KVK Posted December 17, 2009 Author Report Share Posted December 17, 2009 Thanks for your inputs. I wasn't aware of the circular buffer concept. Will try. VE_KVK Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.