Mar-17-2017, 01:47 PM
I wasn't able to find what you were getting at, but I figured out this problem. I made a shutdown function on the module level that changes the value of a global variable from 0 to 1. I added a conditional statement to the while loop that only lets the loop execute if the variable is set to 0. So when I push the start button it sets the variable to 0 and when I push the stop button it sets the variable to 1. After button press the loop breaks and all is well.
Cheers!
Cheers!