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

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

程序设定开关

LabVIEW下能不能在前面板放个开关,按下程序运行,再按程序结束呢?程序面板只有一个while循环,谢谢高手指教!
0 项奖励
1 条消息(共 3 条)
3,933 次查看

如果程序真的结束了,那么在前面板上任何操作都不会有效,因为整个程序已经处于编辑状态了。

您的需求应该是让程序一直运行,通过一个按妞的状态去控制是否执行某项操作。

2 条消息(共 3 条)
3,928 次查看

As long as there is at least a while-loop in your code, the VI should run as soon as you hit the run button (or CTRL+R) on the toolbar. And, it should open and run, automatically, in the executable version.

 

Apart from using the Close button (window's right-top corner), a front panel boolean button may be used to terminate the while-loop hence ending the VI execution.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
3 条消息(共 3 条)
3,902 次查看