10-31-2024 02:50 PM
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..
Solved! Go to Solution.
10-31-2024 02:55 PM
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?
10-31-2024 03:18 PM
Hello Darren,
Thanks for your response. I checked the error output as you suggested and there were no errors.
10-31-2024 03:37 PM
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.
10-31-2024 03:44 PM
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.
11-01-2024 06:20 AM
Hello Darren,
Thanks for the suggestion. I will give it a try and let you know!
11-01-2024 08:52 AM
Hello Darren,
Your suggestion worked like a charm. Thank you!