Phidget scripts only work once

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

Phidget scripts only work once

Postby jcrobots » Sat Apr 06, 2019 1:40 pm

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

Postby jcrobots » Mon Apr 08, 2019 8:36 am

Duplicate of main posting at:

viewtopic.php?f=26&t=9384


Return to “Python”

Who is online

Users browsing this forum: No registered users and 2 guests