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

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

[求助]在BUTTON事件中写WHILE,结果按STOP键不能退出

创建了一个BUTTON(OK键)的CHANGE VALUE事件,在此事件里创建一个WHILE循环,在循环里使一个Numeric值递增,递增值为WHILE循环值i  ,WHILE循环中有STOP键。运行结果:点击OK键,Numeric值开始递增,但是想按STOP键停止,却停不下来,请问是哪里错误了,导致程序死循环了,谢谢。
0 项奖励
1 条消息(共 4 条)
3,882 次查看
同问.
也就是Event Structure里是不是不能同时开始和停止While循环?
0 项奖励
2 条消息(共 4 条)
3,879 次查看
The event structures lock the Front Panel (by default) if the code inside the event structure is being executed. To unlock the Front Panel during execution mode, follow the following steps:
1) Right Click on "Event Structure"
2) Left Click on "Edit Events Handeled By This Case..."
3) Uncheck the box at the bottom of the window that says "Lock front panel until the event case for this event completes".
3 条消息(共 4 条)
3,876 次查看
谢谢~~已经解决这问题了.
0 项奖励
4 条消息(共 4 条)
3,846 次查看