Phidget scripts only work once

Supporting 2.7 and 3.2+
Post Reply
jcrobots
Phidgetsian
Posts: 5
Joined: Fri Apr 05, 2019 8:38 pm
Contact:

Phidget scripts only work once

Post by jcrobots »

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?

--Thanks
jcrobots
Phidgetsian
Posts: 5
Joined: Fri Apr 05, 2019 8:38 pm
Contact:

Re: Phidget scripts only work once

Post by jcrobots »

Duplicate of main posting at:

viewtopic.php?f=26&t=9384
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 14 guests