DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Broadcast events from cloneable modules not firing

Solved!
Go to solution

Hello,

I recently realized that I would need to add a second EHL for data display in my application but after adding the loop, the broadcast events were not firing in the new EHL. I am using a clone manager module to launch the clones but when I try to access the broadcast messages from the helper EHL, it doesn't work. I'm sure I must have done something wrong somewhere and would welcome all suggestions to get around this problem. Thanks in advance..

Multiple EHL3.png

0 Kudos
Message 1 of 7
(717 Views)

Nothing is jumping out at me from that screenshot. About the only thing off the top of my head is that maybe check the error output from the new Register For Events node to see if it is outputting an error for some reason?

0 Kudos
Message 2 of 7
(711 Views)

Hello Darren,

Thanks for your response. I checked the error output as you suggested and there were no errors.

0 Kudos
Message 3 of 7
(700 Views)

Oh wait, I think I see the issue. I'm guessing the broadcast events aren't valid when you're registering for them, seeing as (I'm guessing) there aren't any instances running when you call the Obtain Broadcast Events for Registration VI on the left side of the diagram.

 

You'll need to figure out some way to have your helper loop register for the broadcasts after they're actually valid, i.e. after at least one instance of the cloneable module is running.

Message 4 of 7
(692 Views)
Solution
Accepted by topic author SolPS

My suggestion is to have a private event that fires in the top event loop whenever that code runs to start the clone instances. The second loop is registered for that private event, and when it fires, it calls Register For Events on the existing event reference and calls Obtain Broadcast Events for Registration to replace the null references with actual valid ones.

Message 5 of 7
(689 Views)

Hello Darren,

Thanks for the suggestion. I will give it a try and let you know!

0 Kudos
Message 6 of 7
(672 Views)

Hello Darren,

Your suggestion worked like a charm. Thank you!

 

0 Kudos
Message 7 of 7
(667 Views)