取消
显示结果 
搜索替代 
您的意思是: 

How to update values outside while loop

已解决!
转到解答

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 项奖励
1 条消息(共 3 条)
5,049 次查看

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 项奖励
2 条消息(共 3 条)
5,037 次查看
解答
已被主题作者 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 项奖励
3 条消息(共 3 条)
5,026 次查看