LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

turn off event buffer

Hi.
I cannot manage to turn off event buffer. I mean, an event generated from a certain front panel runs another VI opening its own front panel, I want LabView not to wait for events on the first VI until the second VI is closed. Enableing "lock front panel" is not enough because it only waits some time to process events.
Can someone help me?
 
Thanks a lot
0 Kudos
Message 1 of 6
(3,150 Views)

I see that ten persons have read my post but no one answered me... 😞

Is my post unclear or is it a trivial question or something other?

I can't find any answer in LabView bookshelf...

Thanks,

Andrea

0 Kudos
Message 2 of 6
(3,139 Views)
There are people that'd like to help you.

Sorry, I think it's not clear. Please, be more accurate about your problem.Smiley Happy
0 Kudos
Message 3 of 6
(3,135 Views)
Hello Andrea,
set a boolean flag to true when the event executes wich calls the sub-VI (event_1) and reset it in  the Timeout- event. In every other event you have to place a case structure, which executes the code according to the event if  the flag is unset (False) and does nothing if the Flag ist set. Every event in the event queue after finishing event_1 will be executed before the Timeout event executes.
Hope this helps,
Dave
Greets, Dave
0 Kudos
Message 4 of 6
(3,115 Views)
 
You could also use dynamic events. Have a look at the example "Dynamically Registering For Events.vi" in the example finder.
 

 
I agree that the current behavior (=having unlimited numbers of the same events buffered) is somewhat unsatisfactory. I would prefer if the event configuration would allow an option where only the newest event is retained if events accumulate due to slow processing.
 
Currently I use a simple method as outlined in the following post:
 
Maybe you can adapt a similar method for your purpose.

Message Edited by altenbach on 12-21-2006 07:32 AM

Message 5 of 6
(3,110 Views)

Thank you everyone, I think I will use a flag as suggested, it's a quick and usefull solution...

Merry christmas!!

Message Edited by andrea.angeloni on 12-21-2006 12:11 PM

0 Kudos
Message 6 of 6
(3,095 Views)