I have this code run on my Linux machine. It's running before I did something to the usb settings. (I'm not sure if I changed anything but I suppose this is the reason why it's not running now). Here's the code:
Code: Select all
ch00.setDeviceSerialNumber(serialNumber)
ch00.setChannel(0)
ch00.setOnAttachHandler(onAttachHandler)
ch00.openWaitForAttachment(5000)
Code: Select all
File"/home/administrator/phidget_ws/src/phidget/src/testone.py", line 51, in main
ch00.openWaitForAttachment(5000)
File "/usr/local/lib/python2.7/dist-packages/Phidget22/Phidget.py", line 646, in openWaitForAttachment
raise PhidgetException(result)
Phidget22.PhidgetException.PhidgetException