09-02-2006 09:23 PM
09-03-2006 03:46 AM
09-03-2006 07:13 PM
09-03-2006 08:33 PM
Oh,I see it.
But if the button is not in the event case for some reason, how to lock the front panel?
Thank you.
09-03-2006 09:01 PM
hugoliang wrote:Because the sub-vi uses much memory, when it is running, I want to forbid the user to run other sub-vi.
You leave out a lot of information.
Typically, the only thing you need to do is use proper dataflow and e.g. place all your possible subVIs is different cases of a case or event structure. Once you do this, only one case can run at any given time.
Personally, I would not "lock out" the front panel. The user interface loop should not be blocked and should still and allow simple user interactions, just not lauch an additional heavy CPU process. Alternatively, you could "disable&grey out" certain buttons. Switch the cursor to the hour-glass+arrow, etc. to indicate that the program is actually doing something useful and has not e.g. crashed or locked up. 😉
To give more specific advice, please attach a simplified version of your program.
09-03-2006 10:59 PM
Ok, Thank you. I will follow your advice to disable certain buttons.
Thanks!