NI LabVIEW,CVI,数据采集等产品讨论区

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

[求助]简单的定时循环问题

我这个程序,一开始定时循环后,定时循环内的其他程序就不执行了,有什么解决办法么?

附程序如下:

 

下载全部
0 项奖励
1 条消息(共 3 条)
4,136 次查看

Hi,

 

In your code, once the Case is Started, the rest of the code won't run until the entire sequencer is completed.

Also, why do you need a Local Variable for Start and Boolean 2? 

 

If you are trying to have a progress bar to indicate time lapsed for another process, you may try putting them in two parallel loops.

You may consider producer/consumer structure, master/slave structure etc.

 

One loop does the i.e. waveform generation process, while the other does the time lapsed computing as well as control the earlier loop.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
2 条消息(共 3 条)
4,116 次查看

谢谢回复!我就是想在数据采集的同时,用IO口触发一个自动定时过程,触发后,电机先正转10秒,停顿5秒后,再反转10秒!正反转都是IO口触发的。

 

你说的是用两个并行的while循环,但加两个while循环后,内存占用率很高,机器显得特别慢,还有别的比较好的办法么??

0 项奖励
3 条消息(共 3 条)
4,025 次查看