I'm working on an application that will display vibration data on several tabs. 1 tab displays the time waveform, another a running RMS value, another an FFT etc.
On another tab I want the user to have the option of streaming the data to disk for 'x' number of seconds.
I created a sub-vi with a flat sequence structure.
The first frame open/creates a file. The second frame gets the current time in seconds and adds 'x' seconds to it. The third frame contains a while loop with a "Get Current Time in Seconds" and a "Write to Binary File" which executes while the current time is less than the "previous current time plus 'x'".
This sub-vi is in a while loop that is called when a "capture data" button is pressed.
My problem is that the rest of the program (waveform, RMS, FFT displays) stops executing when the while loop / sub-vi is executing.
This can be seen via the "TEST" indicator that doesn't update.
When the program flow goes back to the rest of the program I get an error 'cause the buffer has over-flown (ed)
I'm really new at this so any help is greatly appreciated.
I've attached images of the main vi (Project3.pdf) and the sub-vi containing the Flat Sequence (WriteToDisk.pdf)
I can attach the actual vis if it helps.
Thanks,
Erik