05-13-2010 09:05 PM
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?
Solved! Go to Solution.
05-13-2010 09:20 PM
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
05-13-2010 09:55 PM - edited 05-13-2010 09:57 PM
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.