I want to use Phidgets interface kit 1019 to read data from multiple analog inputs. However, I can read only from the default channel which is channel 0. below is my code as an example. I'm using Python. I printed out the ch1 before and after setChannel(1), but all of them gave me 0. Shouldn't I got 1 after setting channel to 1?
Hope anyone can help me address this problem.
BTW, I followed the steps here:
https://www.phidgets.com/docs/Phidget_P ... ing_Basics
ch1.openWaitForAttachment(5000)
ch1.setOnAttachHandler(onAttachHandler)
ch1.setDeviceSerialNumber(483362)
rospy.loginfo(ch1.getChannel())
ch1.setChannel(1)
rospy.loginfo(ch1.getChannel())
ch1.open()