11-12-2005 07:57 PM
11-12-2005 09:35 PM
11-12-2005 11:11 PM
Thanks first.
Of course a boolean variable can be tested(boolan switch). But...
when the system is processing the GRAB event, before the while loop exits, it seems that there is no way to change the value of "boolean switch". So now the while loop is waiting the "stop switch" to change its value to true, at the same time the "stop switch" is waiting the while loop exits so its value can be changed. The program locaked here.
11-13-2005 12:13 AM - edited 11-13-2005 12:13 AM
Hi Zpyang,
Since I can't see what's going on (no attachment!) I'm going by the original description - a while loop executing inside an event-case. See pic.
Since this example works, please describe how your code is different!
On the FP you will see the inner-loop-counter stop counting when Boolean becomes true...
Message Edited by Dynamik on 11-13-2005 12:13 AM
Message Edited by Dynamik on 11-13-2005 12:15 AM
11-13-2005 12:59 AM
11-13-2005 01:25 AM - edited 11-13-2005 01:25 AM
edit this event-case AND uncheck "lock front panel until the event case for this event completes".
BTW, your thanks should go to Ankita, <a href='http://forums.ni.com/ni/board/message?board.id=170&message.id=151282'>here</a>
cheers!
...
Message Edited by Dynamik on 11-13-2005 01:26 AM
Message Edited by Dynamik on 11-13-2005 01:38 AM
11-13-2005 01:57 AM
11-13-2005 02:16 AM
Hi Zpyang,
I'm glad we're making some progress!
I will gladly help if you will please attach some example code (in LabVIEW 7)
cheers!
11-13-2005 02:35 AM
Thanks a lot.
I'll upload the source code(VI file) tomorrow. It was in my office computer, now it's unavailable.
11-14-2005 06:56 AM