05-25-2010 08:27 AM
05-25-2010 09:23 AM
chandler wrote:
I have a long term test that I would like to have automatically save the current step and time data to a file. I would like to do this in case the test is stopped or power is lost so I can restart the test with the same conditions it stopped with. My concern is my timer value. I am currently saving my timer value to a .tdms file using a create/replace so it only has the one value in it. It is continually updating this file. I am concenred about a memory leak or that this isn't they best way to do it. Any thoughts or ideas?
Saveing the current state to a TDMS file and initializing from the same file sounds like a very viable plan to me. I have used the same procedure in the past. I ccan't think of a reason this (file access) would cause a memory leak. Are you seeing odd behavior?
05-25-2010 09:27 AM
05-26-2010 07:51 AM
05-26-2010 09:39 AM
Why using a TDMS?
Since here we're saving a single value at a (I suppose) slow rare,
a plain ASCII file wouldn't be the same?
Thanks in advance,
Marco
05-27-2010 08:57 AM
Saving a time value to a text file always incurs several problems:
05-27-2010 09:34 AM
I am saving in relative time H:M:S. I have tried the tdms and saving to a binary file and neither seem to cause a memory leak. I have also decided that I only need to save this time once a min instead of every second. What is a min over a 45 day test!
Thanks for all the input