The LabView updates a waveform graph every 0.1 sec.
When a user presses a button, I want LabVIEW to wait for 5 sec and play a sound for 5 sec.
Meanwhile, the wavefrorm graph should be continuously updated.
When I have the case structure inside the while loop, it interferes with waveform graph updates.
When I have the case structure outside the while loop, the case structure is never executed.
What can I do?
已解决! 转到解答。
Start by taking the tutorials on LabVIEW to turn about dataflow.
Your other structure cannot execute until the while loop ends because it has a data dependency of the boolean control.
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
I have figured it out by using the Producer/Consumer Design Pattern example.
http://decibel.ni.com/content/docs/DOC-5404
It allows a variable that is updated within a while loop to be updated outside the while loop while the loop is running.