From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Handle Highest Priority Message in QMH?

Hello Team,

 

I Have Question, if My QMH is running, In Case two or more Trigger message coming.

 

So How to Pass Priority Level Message First

 

Thank you in Advanced

 

Rupesh.v

0 Kudos
Message 1 of 3
(749 Views)

What determines if what message is higher priority?  And can messages be even higher priority than that so you have varying degrees of priority?

 

Assume you have regular priority and high priority, you could enqueue high priority messages to the front of the queue.

 

Or you could have a second queue that gets only high priority messages.  You dequeue from there first with a 0 timeout value.  If that times out, then you dequeue the next message in the regular priority queue.  But you'll want to have that timeout quickly also so your consumer loop can recheck the high priority queue.

 

But any system where messages can get jumbled around can get messy fast.  What happens if a high priority messages makes some messages in the regular queue obsolete?   How do you plan to handle that?

 

 

0 Kudos
Message 2 of 3
(742 Views)

Hello sir, Thanks for reply.

 

We planning to Design Architecture with User Events.

 

Actually we Planning to Design Architecture  for project , High Voltage Test Bench.so we Get some Data Vol-cur-pow & Run Test Cycle Continuously.

 

Mean while Time, In  Abnormal Condition Customer Press Emergency Stop Button from LabVIEW or Manually From Hardware.

 

System such That work First Work The Emergency Command then other Flush or not work.

 

Thank you.

 

 

 

 

 

 

0 Kudos
Message 3 of 3
(708 Views)