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.
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.
09-29-2017 03:06 AM
HI everyone,
I'm developing mi first DQMH-based application and I have to say I really like it, although I feel there are still dark corners where I'm missing something on how to properly use it.
One of these points is the following. I have a total of four modules, a Main UI, two instrument control modules (called MAB and FAST-PS), and a Logging module. The Main UI module starts all the other three modules at startup, like this:
Then, the other modules need to listen to the Main UI broadcasts and to each other's broadcasts. In particular, I want the Logging module to listen to the Main UI and the MAB module broadcasts. This is how I do it in the Log module:
and I can correctly see the events in the available event list. But here comes my problem: in this Log module, while I can catch the events from the Main UI module, the events from the MAB module are systematically missed; more precisely, they never arrive at the event structure albeit they are actually fired by the MAB module (I can see it in the Event Inspector Window).
I've read the DQMH Best Practices document and I feel that the point I'm missing is this one:
If a module registers for the broadcasts from other modules, you need to be careful about calling “Obtain Request Events for Registration.vi”, because if the module is not already running, this VI just determines the broadcast datatype. You should consider creating a private request to register for the events if the module launches later.
but I cannot figure out how to create this private request, because I don't know how I can register to other events in run-time from inside the event structure itself (if this is what I have to do)...
Can someone please show me what I'm doing wrong?
Thanks in advance for any help,
Carlo
Solved! Go to Solution.
09-29-2017 06:24 AM
09-29-2017 08:40 AM
Congratulations. You interpreted the Best Practices text correctly.
Glad you were able to figure it out, let us know if there is anything else we can do to help.
Thanks,
Fab
10-02-2017 03:43 AM
Thanks Fab!