PhidgetException 0x03 (Timed Out)

Supporting 2.7 and 3.2+
Post Reply
SeanEng
Fresh meat
Posts: 1
Joined: Sun Sep 25, 2022 11:46 pm
Contact:

PhidgetException 0x03 (Timed Out)

Post by SeanEng »

I'm trying to connect to a Wheatstone Bridge with a load cell attached to it using the Vint Hub. I've loaded the example code with the hub port and serial number in PyCharm but I get the message: Phidget22.PhidgetException.PhidgetException: PhidgetException 0x03 (Timed Out)
No matching devices were found to open....

I'm not sure what I'm doing wrong. My code is shown below:
from Phidget22.Phidget import *
from Phidget22.Devices.VoltageRatioInput import *
import time

#Declare any event handlers here. These will be called every time the associated event occurs.

def onVoltageRatioChange(self, voltageRatio):
print("VoltageRatio: " + str(voltageRatio))

def main():
#Create your Phidget channels
voltageRatioInput0 = VoltageRatioInput()

#Set addressing parameters to specify which channel to open (if any)
voltageRatioInput0.setHubPort(1)
voltageRatioInput0.setDeviceSerialNumber(673573)

#Assign any event handlers you need before calling open so that no events are missed.
voltageRatioInput0.setOnVoltageRatioChangeHandler(onVoltageRatioChange)

#Open your Phidgets and wait for attachment
voltageRatioInput0.openWaitForAttachment(5000)

#Do stuff with your Phidgets here or in your event handlers.

try:
input("Press Enter to Stop\n")
except (Exception, KeyboardInterrupt):
pass

#Close your Phidgets once the program is done.
voltageRatioInput0.close()

main()

Please let me know what I'm doing wrong. Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests