Code: Select all
from Phidget22.Phidget import *
from Phidget22.Devices.VoltageInput import *
try:
sensor = VoltageInput()
sensor.setDeviceSerialNumber(123456)
sensor.openWaitForAttachment(5000)
print("Phidget 1048 successfully connected.")
except Exception as e:
print(f"Error: {str(e)}")
Code: Select all
Error: Unable to open Phidget.
Has anyone encountered this issue before, or is there a solution to resolve this error?