I suspect that the issue may be related to the fact that I'm running 32-bit python on this computer (due to the need to use 32-bit libraries for some other parts of my experimental setup), and Phidgets might be trying to load the 64-bit drivers.
Here is the minimum code required to reproduce the problem:
Code: Select all
from Phidget22.Devices.DigitalOutput import DigitalOutput
hub_serial_number = 530304
hub_port_number = 0
ch0 = DigitalOutput()
ch0.setDeviceSerialNumber(hub_port_number)
ch0.setChannel(0)
ch0.openWaitForAttachment(timeout=1000)
Code: Select all
Traceback (most recent call last):
~~~snip text out here because of the stupid forum software~~~
line 551, in openWaitForAttachment
raise PhidgetException(result)
Phidget22.PhidgetException.PhidgetException: PhidgetException 0x03 (Timed Out)
No matching devices were found to open. Make sure your device is attached, and that your addressing parameters are specified correctly. If your Phidget has a plug or terminal block for external power, ensure it is plugged in and powered.
Has anyone else run into something similar? Any suggestions?
(Side note, I had to snip out a bunch of the traceback text above because the forum software thought it was an external URL, despite it just being a windows file path. That's super annoying.)