I am trying to create an event handler for signal change as in the PC SDK application manual.
I have a virtual controller at which i am changing a signal “DO_testing” but during debugging the event handler does not seem to react to changed signal value.
This is my code:
in the Form_Load:
Signal sig = controller.IOSystem.GetSignal(“DO_testing”); sig.Changed += new EventHandler
I see that you first make a “normal subscription” using += and then using the Subscribe method. Try first commenting out the call to Subscribe and check if the event fires. We have had a bug in the implementation of high priority subscriptions. Which version of PC SDK are you using?
Im using sdk 6.01 but i found out what my problem was, i was closing the thread of the first form and starting a new one. After revoking this, the event seems to be working.
The forum seems to be trimming my posts and removing all the empty rows, how can i keep some empty rows to have some separation in my message?
Sorry I forgot your feedback on the forum itself. You are right. I also made a post with some new lines in it and when viewing it in preview and after it has been posted - new lines are trimmed. Something has happened…
When I edit the post again it looks correct. So it seems that the content is available behind the scenes but when the post is rendered something is trimmed away.