各位高手,请教一个问题,我在while循环内加了一个与tab control相连的case结构,在任意两个case中使用了event结构来响应对应的case中的button的动作。现在的问题是,当运行程序时,如果点击其中某一个页面的按钮,再转到其他页面点击其他按钮时,程序无响应,而且此时,按stop按钮不能停止程序。应用中每个页面都会使用一个不同的按钮,但是现在仅仅两个就使得程序无法正常运行,请教一下是什么原因?谢谢
程序见附件
不要在一个循环中使用多个EVENT STRUCTURE,这样会导致事件结构“饿死”的情况。
If you really wanna use event structure for each of the (tab-control) cases, Add "Timeout" event to each of the event structures, wire a timeout value i.e. 100ms to the Event Timeout terminal.
If not, do what George Zou had suggested.