06-13-2006 11:31 AM
06-13-2006 02:10 PM
06-13-2006 02:11 PM
06-13-2006 02:11 PM
06-13-2006 03:21 PM
06-14-2006 08:10 AM
06-14-2006 09:42 AM
I add the wait time in each loop, the same thing happened.
I really doubt when the main vi call sub vi, the handle is still in main vi, at this time, when applications are changed front and back, the program is stroked there. The reaon is that the front panel is the main VI's front panel, but the diagram running is subvi's diagram.
Anyway, thanks
06-14-2006 10:33 AM
06-14-2006 11:12 AM
Thanks, Dennis.
As I said, it is really hard to catch this bug. I test it on more than 7 different setting Dell PC machines, the same problem happens.
Cause we have two loop here, one is in main.vi, one is in sub.vi, does not matter have wait time or not.
1. When you click Run SubVI button, the program goes to subvi, works fine. (I admit this)
2. At this time, if you change among different applications (notpad, explore,...) when you go back, the program stop in the main vi front page with two button there (not in sub vi which has only one button on GUI).
Repeat 1 and 2 several time, the bug is generated.
I am not sure if this is clear to you. I also found if I change the sub vi windows behaviour to Model or Float, the bug can be fixed. But, I don't want to do that. What I try to do is set up sub vi property (windows behaviour as Default) and solve this bug.
06-14-2006 12:09 PM