04-23-2009 07:07 PM
I have an application where I suspect the customer is operating in a hotter environment than they are claiming. I prepared the RT host vi to log a simple text file directly on to the RT's C: drive. In this case I'm only logging the transition of events when the chassis temperature exceeds 70C and then becomes less than 60C along with a date and time stamp. (It's not continually logging data.) However, I'm concerned that over time (i.e months from now after I've long forgotten the project) the file will get overly large and affect system operation. There are articles that deal with memory management but I'm not sure how to interpret them. They talk about RAM. Is RAM the same as the C: drive on the controller? How do I determine the available memory on the C: drive; like using "dir" in the old DOS days? What is the best Knowledge Base article that deals with this issue. This system is a stand alone application. (The host PC is not normally connected.) I am using a cRIO-9012 controller and LV v.8.6.
Dave
04-23-2009 09:28 PM
04-24-2009 08:33 AM
Hi Gsussman,
Limiting the logged data to something like 3 months is an excellent idea. As far as not opening the file by only appending the data is concerned, I think I'm logging the data the correct way. Attached is the subvi that I'm using. Please look at it and see if there is a better method.
Thanks,
Dave
04-27-2009 10:06 AM
Hello,
My only concern with the method of keeping it grow for a specified time is that the file can grow out of bounds within this time. As you wont have any control on the amount of transitions. If the data is alot then I would suggest you to use a file with a constant size for eg 64 kb or so and keep on rolling over the older data. I am not sure if you need all the previous data.