Apr-21-2020, 10:11 PM
Thank you. Will do so more reading about class, I hadnt understood the sharing of results from them properly assumed they just used variables, I've not needed to use them.
Regarding not threading it I agree its better not to, my code is short and in coding terms has wait time so overhead isnt a concern but I am expecting a high likelihood of interrupt calls being almost simultaneous I cant see a way of writing the code that will accept that, although I am not sure how python would handle an interuppt mid execution? I might be able to sequence it in such a way that it looks for interupts in a specific order and waits for each one. But I need to have a longer think about the hardware, how thats triggered and what output I want to decide if that will create other problems.
Thanks
Regarding not threading it I agree its better not to, my code is short and in coding terms has wait time so overhead isnt a concern but I am expecting a high likelihood of interrupt calls being almost simultaneous I cant see a way of writing the code that will accept that, although I am not sure how python would handle an interuppt mid execution? I might be able to sequence it in such a way that it looks for interupts in a specific order and waits for each one. But I need to have a longer think about the hardware, how thats triggered and what output I want to decide if that will create other problems.
Thanks