1
Support Questions / Any difference between Datasubscriber2 generated with designer and user code?
« on: April 21, 2020, 06:25:42 AM »
Hello,
I have created an app that functions correctly with an EthernetIPforCLXComm & Datasubscriber2 generated by the designer.
I am able to subscribe to the tags dynamically and access the driver from the partial class of the MainForm.
I am trying to move away from the visual components into a console app or service and I can't get the datasubscriber2 that i create to fire the datachanged event.
I've copied the exact code the designer creates into mine and assigned it to my instance of the ds but still no luck.
My question is, I guess, is it possible to create the datasubscriber (and get it to work) programatically or will I need to just stick with the designed code?
Thanks
Colin
I have created an app that functions correctly with an EthernetIPforCLXComm & Datasubscriber2 generated by the designer.
I am able to subscribe to the tags dynamically and access the driver from the partial class of the MainForm.
I am trying to move away from the visual components into a console app or service and I can't get the datasubscriber2 that i create to fire the datachanged event.
I've copied the exact code the designer creates into mine and assigned it to my instance of the ds but still no luck.
My question is, I guess, is it possible to create the datasubscriber (and get it to work) programatically or will I need to just stick with the designed code?
Thanks
Colin