LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

An event structure can freeze the front panel even if not executed?

See example (LV9). Two Event structures, each in a case of a Case structure; if they handle the same event, when it fires the front panel freezes.
0 Kudos
Message 1 of 9
(5,288 Views)
can you save it as a 8.6 so I can open it?
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 9
(5,285 Views)
I suggest you read the caveats of using the Event structure in the LV help.  The case structure does not stop execution of the event structure so you effectively have two event structures in the same loop.
0 Kudos
Message 3 of 9
(5,283 Views)

As Darin already stated, this is expected behavior and a wellknown DO NOT for event structures.

So please make it a rule of thumb:

Never ever configure two different event structures to fire on the same eventsources!

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 9
(5,277 Views)
Good to know. It's not written in the Caveats page
0 Kudos
Message 5 of 9
(5,254 Views)
Yes it is. It's called 'Avoid placing two Event Structures in one loop.'
0 Kudos
Message 6 of 9
(5,250 Views)

I know, but it talks about two Event structures executing in parallel (and that's logic).

It does not say they will magically wait for events even if they don't execute...

0 Kudos
Message 7 of 9
(5,242 Views)
What you have to understand is that an event structure is always waiting for an event and that placing one inside a case statement does not mean it will not capture events. Two event structures in the while is still two event structures and the case statement does not change that.
0 Kudos
Message 8 of 9
(5,234 Views)

I already understood, thanks.

Just saying it's not written in the help, that's it.

Bye

0 Kudos
Message 9 of 9
(5,229 Views)