Feb-03-2021, 08:44 PM
(Feb-03-2021, 07:08 PM)jefsummers Wrote: You probably want to have the part where you are checking the interrupter status where line 5 is. Also, rather than checking if finish is equal to time.time() as in your comment, you really want to use an inequality like in the code snippet.
Yeah the interrupter check being inside the while loop instead of having pass there was what did it for me. Took me forever to realize this but it certainly felt good when it worked. Also using "if time.time() == finish:
print("Number of interrupts: " + str(x))" worked for me.