I am running Python scripts on Ubuntu 16.04 to control 2x 8/8/8 Phidgets connected over USB. My script runs correctly the first time, but if it crashes once, the channels on one Phidget will get stuck on ch.openWaitForAttachment(), and hang forever or time out.
Could this be because I'm not closing everything properly when my script crashes? Currently the only way I know to fix the issue is to reboot the entire machine. Is there a way to reset both Phidgets at the start of my program to fix this issue?