07-30-2007 03:58 AM
07-30-2007 05:55 AM
Hey Thomas,
When using Event Sturctures with cases waiting on the same event to occure, LabVIEW activates this case in all structures as this event fires. This is due to the compile process of LabVIEW. The only way to avoid this is to not use the same event in more than one structures within a VI!
BR, Christian
07-30-2007 06:02 AM
07-30-2007 12:04 PM
07-30-2007 12:40 PM - edited 07-30-2007 12:40 PM
Christian Mergl wrote;
"
The only way to avoid this is to not use the same event in more than one structures within a VI!
"
[Emphesis added]
Actually the same event can be used in more than one event structure by dynamically registering and un-registering the event as needed.
Ton posted a Nugget on dynamic events that can be found here.
Christian also wrote "This is due to the compile process of LabVIEW."
Could you please expand on this point. I do not know what the compiling has to do with this.
Trying to help,
Ben
PS: Tbob suggestion will allow you get away with only a single event provide the rest of the code is set up to adabpt.
Message Edited by Ben on 07-30-2007 12:41 PM
07-31-2007 02:37 AM
Hey,
Sure, using the dynamic event terminals is another possibility. But I tried to explain the origin problem and will say it again: "Never use the same event in more than one event structure!"
Configuring two event structures waiting for the same event, within the compile process the event is registered for each structure and is placed in their event queue when it occurs. Then both event structures will fire, but the second one executes after the dataflow reaches it.
Hope this helps!
07-31-2007 07:55 AM
"Sure, using the dynamic event terminals is another possibility."
Thank you Christian.
My reply was intended for the purposes of correcting the record. More than once I have read posting were users have quoted "NI-postings" as gospel.
Ben
10-22-2007 05:48 PM
10-23-2007 11:06 AM
Try again to attach your VI, it did not make it.
@wdmot wrote:
I've attached an extremely simplified VI that demonstrates the problem in my implementation.
10-23-2007 01:09 PM - edited 10-23-2007 01:09 PM
Message Edited by wdmot on 10-23-2007 01:10 PM