I included a stop button to stop all four timed loops. So that problem is fixed.
I tried moving all the DAQmx Timing, DAQmx Start Task, and the DAQmx Stop Task all outside the timed loop. I only left the DAQmx Read insided the timed loop. I got strange behavior like it would run once and then stop. I then tried all possible combinations of inside and outside the timed loop and it would fail to run, or it would run but display NAN for all entries.
As the VI gets more and more complicated it seems like the error message is increasing in frequency.
Ultimately the program has four functions: 1) Display on the front panel values at 0.5 Hz. 2) Perform an appended data save by recording 1 value at 1 Hz or maybe as high as 50 Hz. 3) Perform a buffered acquisition and save the data. 4) Open a file and plot some data.
With the exception of 3) I want the values to continuously display on the Front Panel at the requested 0.5 Hz. I have chosen to use 4 Timed Loops to accomplish this. Is there a better way? How should all the DAQmx VIs be arranged with multiple Timed Loops?
Attached is my latest version.