LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Events between 2 Event structures & Queues.

Solved!
Go to solution

Hi Everyone,

 

Attached you'll find a example of Two event structures inside while loops.

 

The bottom loop is paused or release by a queue.

 

I don't understand why the play event is not registered on the bottom loop the first time it is fired.

 

any idea?

 

Thanks a lot,

 

Best Regards,

 

 

0 Kudos
Message 1 of 4
(2,631 Views)

I think the problem is how you're using the Dequeue in the bottom loop - it's waiting for a value from the Boolean queue before the event structure has registered for the User Event for the first time - therefore that first event gets lost.

Message 2 of 4
(2,625 Views)
Hi Greg,
Thanks for your answer, I understand that but is there a workaround?
How should I do to make sure I register the first event?
Also, is there a way to check timing on events and queues, for example how can I know that an event has been registered on a register event vi?

Thanks
0 Kudos
Message 3 of 4
(2,600 Views)
Solution
Accepted by topic author Olivioloyer

Thanks You were perfectly right I just inverted the order of execution with the error wire and it works great, 

 

Thanks

0 Kudos
Message 4 of 4
(2,580 Views)