Jump to content

Queued Message Handler

From LabVIEW Wiki
Revision as of 03:01, 11 November 2018 by Q (talk | contribs) (Added content from the FANDOM site.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Queued Message Handler (QMH) design pattern is a combination of producer/consumer, event handler and state machine architectures together.  The producer loop contains an event structure that sends messages to the consumer loop.  The consumer receives and processes the messages in a state machine.  A message can be triggered by UI events or from other states in the state machine.  The QMH can also be designed to provide feedback from the consumer to the producer using User Events.[1]

Queued Message Handler (QMH) with one Event Handler Loop (EHL) and one Message Handler Loop (MHL)
Queued Message Handler (QMH) with one Event Handler Loop (EHL) and one Message Handler Loop (MHL)

Use Cases

Add yours here

References

  1. "Queued Message Handler Template" by National Instruments (http://www.ni.com/tutorial/53391/en/)