I am having issues trying to make my program Start and Stop accordingly.
What I want to do is to Start the loop when a button is pressed and Stop it either by a Button or by an Event. The events could be any of the Boolean on the code attached.
I have tried using an event structure with a while structure inside and then the loop but still things were not quite right: Start/Stop buttons were not working, etc.
if anyone could help me I will appreciate it.
regards