DQMH API description
Main palette
DQMH Create Message Queue
This VI creates and initializes the message queue for a QMH Module. If the message needs to be different for the given module, then create a child class of Message Queue and override the appropriate methods.
DQMH Enqueue Message
| This VI is polymorphic. |
For a regular message, enqueue the message. For a priority message, enqueue it at the front of the queue.
DQMH Error Handler - MHL
Process an error that occurred in the Message Handling Loop, either by ignoring it, or generating an "Error" message.
DQMH Error Handler - EHL
Process an error that occurred in the Event Handling Loop, either by ignoring it, or generating an "Error" message.
DQMH Error Handler - Helper Loop
Process an error that occurred in a Helper Loop, either by ignoring it, or generating an "Error" message.
DQMH Queue Status
Retrieve the current status of the message queue. By default, this VI will not return the current element values in the queue. This allows the VI to execute much more quickly. If you want the current elements to be returned in the Current Messages in Queue and Current Message Data in Queue outputs, wire a TRUE to the Return Current Queue Elements input. This will cause the VI to execute more slowly and use more memory.
DQMH Scripting
Get DQMH Modules
Returns information for all detected DQMH modules in a project. Remember to close the module library references when you are done using them.
Note that this VI will not return DQMH modules that are inside PPLs.
Get Event VIs in DQMH Module
Returns VI references to all event VIs in a given DQMH module, separated by event type. Remember to close the VI references when you are done using them.
Get Callers of Request VI in Project
Returns VI references to all VIs in the project that call the given request VI. Remember to close the VI references when you are done using them.
Get VIs Registered for Broadcast in Project
Returns VI references to all VIs in the project that contain an event structure registered for the broadcast event of the given broadcast VI. Remember to close the VI references when you are done using them.
Note that since this VI parses the diagrams of all VIs in the project, it may take a while to complete.
Validate All DQMH Modules in Project
Pass this VI a project reference and it will validate all DQMH Modules in that project. Possible return values of this VI are:
ERROR: [description of error that occurred when trying to validate]
PASS: [n] Module(s) Validated
FAIL: [n] Module(s) Analyzed
…