1
Support Questions / Array of DataSubscriber2 at runtime
« on: August 08, 2018, 08:51:17 PM »
Hi All,
I have a situation where I want to create multiple DataSubscriber2 at runtime, but the quantity may vary depending on ini file settings.
I can create them no problem, (at least I think I can!), but I am having trouble linking them to an event handler function. Happy for the one routine to handle all as once I get the event details I can branch/react as required.
Any advice? Or am I fooling myself?
Cheers,
Graeme.
(Reason: I have a common app across multiple projects. Each project connects to different quantities of PLC's. I want to keep the application generic)
I have a situation where I want to create multiple DataSubscriber2 at runtime, but the quantity may vary depending on ini file settings.
I can create them no problem, (at least I think I can!), but I am having trouble linking them to an event handler function. Happy for the one routine to handle all as once I get the event details I can branch/react as required.
Any advice? Or am I fooling myself?
Cheers,
Graeme.
(Reason: I have a common app across multiple projects. Each project connects to different quantities of PLC's. I want to keep the application generic)