I have a QMH-based program with a queue dedicated to each hardware peripheral in my system (for the most part). In one instance I have a QMH loop (lets say LoopA) that needs a piece of data from some serial hardware that is controlled/read from a different QMH loop (LoopB).
What I have been doing thus far is enqueuing a message from LoopA to LoopB to get data. LoopB gets the data and posts it to a GV, while LoopA waits a fixed amount of time then reads the data at the GV. Is there a better way that follows the LabVIEW dataflow convention? First thing that comes to mind is semaphores, but that feels clunky.
Edit: I suppose I could have LoopA finish it's message then LoopB could enqueue a message to LoopA once it retrieves the data from the hardware, then LoopA could handle the message with the data from LoopB, but that doesn't seem very efficient.
Thanks
JP