Hi Zvezdana,
I am having some doubts about Event structure.
I have a program in which there is a 'while loop' running my devicenet communication. I am both writing and reading some information in this loop.
When the user presses a button, I am supposed to give certain type of information to my main while loop executing DeviceNet. This information varies with time, and hence I wrote a Event structure to execute this subroutine. This Event structure, I put it inside another while loop, and placed this alongside the main while loop.
Now, when I want to stop the program, the main while loop can be terminated using a boolean control, but the Event continues to run and my program never ends. How can
I end the whileloop of the event structure, when I am ending the main while loop. Using a local variable of the boolean control to stop the whileloop of the event, does not work.
Please help me get around this problem.
Thanks.