12-04-2009 03:05 PM
This question has probably been asked before but I truly can not find a solutions.
Anyways; the problem is simple, I am using write to mesaurment file (.lvm) and it records just fine, but when I open the file (while th vi is still runing) it doesn't continue saving data anymore. How do I solve this problem?
Thanks,
Solved! Go to Solution.
12-04-2009 05:23 PM
A man walks into a doctor's office and the doctor says "OK, what's wrong". The man says "Well, doc, every time I raise my arm it hurts." The doctor says "Stop raising your arm. NEXT!".
Problem solved? (Hey, it's Friday.)
OK, how are you opening the file? .lvm files are simple text files so if you open them with an application that caches the information you should not be encountering a problem.
12-07-2009 04:26 PM
Hi Roddy,
When you say that it doesn't continue saving data anymore, do you mean that the file does not continue to populate data while the file is open? If you close the file and then reopen it, is the data there?
I ran a quick test using the following code:
When I opened the file while the VI is running (I just used Notepad to open it), I get the data up until I opened the file. If I close it, then I get all the data up until I opened the file the second time. Is this not the behavior you are seeing?
Thank you for choosing National Instruments.
Aaron
National Instruments
Applications Engineer
12-09-2009 01:58 PM
12-09-2009 11:01 PM
12-10-2009 10:13 AM
Hi Roddy,
If you create a brand new VI using the code that I posted earlier and then open and close the .lvm file using Notepad while the VI is running, do you still see this problem? Or does the file update with new information every time you open the file?
Thank you for choosing National Instruments.
Aaron Pena
National Instruments
Applications Engineer