LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to add Event to the front of the Event queue?

Hello All

The "Generate User Event" can add the event to the end of the queue.
Is there any possibility to add the event to the front of the queue?,
like in the standard "queue operation"?

Thanks in advance
Pawel
0 Kudos
Message 1 of 3
(2,971 Views)
LabVIEW does not give the programmer the ablity to add events to the
beginning of the event queue. If you need this functionality you
might consider using a queued state machine. Search NI's site for a
description. You might perfer to use an existing VI template that
uses two loops--one for UI and one for code--with queues passing
information. Open LabVIEW >> new >> VI template >> frameworks >>
design patterns >> producer consumer design pattern
0 Kudos
Message 2 of 3
(2,971 Views)
Hello Jeremy

I was thinking about state machine aswell, but I have already
developped quite big application using events and I do not think I
will go for state machine. Actually I think I may combine those two.
Thanks anyways
Pawel
0 Kudos
Message 3 of 3
(2,971 Views)