The second issue I am having is trying to attach to it in python. This code tells me I have and invalid argument when I try to attach.
Code: Select all
import sys
import time
from Phidget22.Devices.DCMotor import *
from Phidget22.PhidgetException import *
from Phidget22.Phidget import *
from Phidget22.Net import *
def DisplayError(e):
sys.stderr.write("Desc: " + e.details + "\n")
ch = DCMotor()
ch.setIsHubPortDevice(True)
ch.setHubPort(4)
try:
ch.openWaitForAttachment(5000)
print("Attached!")
except PhidgetException as e:
DisplayError(e)
print("Failed to attach")
Code: Select all
ch.setIsHubPortDevice(True)