04-25-2016 07:07 AM - edited 04-25-2016 07:14 AM
Hi everyone,
So I have this VI (attached), which does some temperature data acquisition and save it in a file every ## seconds. I wired a constant "true" to "append to file", so the program writes the new data without replacing the old one. Each time the file is modified, the graphs are reset to zero and the acquisition continue.
The problem is : when the graphs are reset, the acquisition restarts at t0 (start time, when i click on the start button), whereas I want it to continue.
I tried to fix this with a local variable and a conditional structure (center of the second while loop). Now the time is correct when the grahps restart, but in the exported file it still restarts at t0...
Do you know how to correct this ? I don't know if it is very clear.
Thank you for your help
Sorry for bad English
04-25-2016 08:01 AM
There are many complexities in your code that can be greatly simplified by learning some basic Lab principles.
Sorry I didn't address your original question directly. I'm having difficulty understanding what you want to do because, in part, you are using methods that most LabVIEW programmers avoid (Frames, Local Variables, huge Block Diagrams, etc.).
Bob Schor
04-25-2016 10:06 AM
Thanks a lot for this developed answer. I'm trying to correct these points, I will maybe post the modified VI later.
For the "x > y ?" test, I want to save the data acquired until now and reset the graphs if the array is bigger than a user-specified number (= number of measurements/second). I also re-define a t0, or else the graphs will restart at the first t0.
I don't understand what you mean by "poorly timed". Do you mean the "wait" function ?
Thanks again, this is really helping me.