LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DQMH event not firing or firing intermittently

Solved!
Go to solution

Let me start off by saying that i am new to DQMH and do not fully understand it completely. I have 3 cloneable modules (Test Panel, Settings Panel, Logging panel) that all talk to each other and 1 server module that talks to 1 of the cloneable modules (test panel).

 

So the way that I have it now is:

 

Server opens up a new test panel that starts the Logging Module and the Settings module and registers for the events..

Joe_H_0-1662651992564.png

The problem that I am having is that the settings module broadcast an event called "Settings Updated" . I have registered that event in the "Logging Module" so that the settings can be updated.

Joe_H_1-1662652280871.png

 

However when that event is fired from the settings panel, the event is not triggered in the logging module or it gets triggered sometimes and others it don't. I have verified this as a whole system and by just using the tester api for each module. The settings panel and the Logging panel communication seems to get messed up somehow. I am sure it is something simple but I am still learning this pattern. attached is a source distribution of the code for  you all to look at.

 

 




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 1 of 3
(1,201 Views)
Solution
Accepted by topic author Joe_H

Hi Joe, 

One problem I see is that the "Logger" registers for the broadcasts from "Settings" before settings is running, so I don't think these will be valid events. 

Also, I don't see where the Logger ID is shared to "Settings", so I think the "NewSettingsUpdate" event will always be addressed to Logging Module = 0.

Message 2 of 3
(1,171 Views)

Thats kind of what I was thinking. I reversed the order and put a dependency in for the settings panel to start first and it seems to work better.




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 3
(1,168 Views)