I'm new to LabView, and have what is probably a simple problem to overcome.
I'm scanning 4 LVDT's and one Pressure Transducer at 5 Hz (within my main While loop). This rate works great as the refresh on the front panel indicators and XY-Graph. I also want to write my data to a text file, but I do not want to do so on every sample. Reason - the testing I will be recording will last for several hours and I don't need the data file becoming excessive.
I have my VI set up to start scanning on RUN, and I have a separate Boolean to begin "Recording" the data...which triggers the "Enable" input terminal of the Write Data File express tool. Of course, since this is all in the main While loop, the writing is at 5 Hz.
I've tried to nest a timing loop that only controls the data writing, but everything I try ends up slowing down the execution of the main loop. So, I'm sure I'm not doing the nesting correctly.
I would like to be able to specify the "Write Interval", in seconds, on the front panel, so that during testing I can speed up/slow down the write interval as needed, but I don't want to slow down the main refresh rate.
Can anyone help?
Thanks in advance!
_____________________________
Edward J. Garbin, Jr., Ph.D., P.E.
Chief Engineer - Southeast Region
Hayward Baker, Inc.
6850 Benjamin Road
Tampa, FL 33634