From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to update values outside while loop

Solved!
Go to solution

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? 

 

 

0 Kudos
Message 1 of 3
(4,262 Views)

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

0 Kudos
Message 2 of 3
(4,250 Views)
Solution
Accepted by topic author uwm

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.

 

Message Edited by uwm on 05-13-2010 09:57 PM
0 Kudos
Message 3 of 3
(4,239 Views)