04-28-2011 08:45 AM
Hi All,
I have the most bizarre of problems.
I had a data logger system set up for my 9074's (connected using network connections in a master/slave set up) which last night was working absolutely fine.
Before I left work I made some minor changes, created sub vi's for consolidation, added in some other minor steps such as creating sub folders over an FTP connection and including a previously tested and definitely not memory hungry serial port monitor (Used countless times without issue).
This morning, I booted up the kit this morning to check the slightly modified code and was thrown a massive curve ball!!!!
Up until now both cRIO's have used about 50mB of 120mB (Roughly) for the programs with a further 10mB used up during the first 30 or so seconds, leaving me with roughly 60mB of free "RT Memory" for queues etc. My code basically fills these queues for 30 seconds, the writes the buffer to disk in a particular file format, then after 60 seconds transfers the files to a NAS drive using FTP.
For the last few weeks this has been working consistently using up about 10mB of RT memory in the queue buffers before saving the data leaving me with about 50mB of RT memory to play with. I have been monitoring the memory usage using RT GET MEMORY USAGE.vi from the real time target support lilib.
This morning this all changed!!!! The memory now suddenly falls like a stone from 70+mB to a little over 30mB over a matter of ms, using a while loop with a 10ms count still doesn't capture the rate of change, the program will then run as expected for about 5 minutes before ending suddenly and without warning returning no errors at all.
In an effort to sort the issue I reverted to the code I was using last night, and it is now exhibiting the same problems. I would attach the project, but it's pretty massive with many subvi's so I don't really think it is practical!
I am starting to get a trifle ticked off with this stuff, I have been trying to sort this data logging system for nearly 9 months now and have been hitting brick walls at pretty much every turn :manmad:.
PLEASE HELP ME!!!!!
Dominic.
(and breathe........)