Right now the ENC1000_0 is opened with this code when both are connected.
Code: Select all
>>> en = Encoder()
>>> en.openWaitForAttachment(5000)
>>> en.getDeviceClassName()
'PhidgetVINT'
Code: Select all
>>> en = Encoder()
>>> en.openWaitForAttachment(5000)
>>> en.getDeviceClassName()
'PhidgetVINT'
Code: Select all
>> from Phidget22.Phidget import *
>>> from Phidget22.Devices.Encoder import *
>>> en = Encoder()
>>> en.setChannel(1)
>>> en.openWaitForAttachment(5000)
>>> en.getDeviceClassName()
'PhidgetEncoder'
>>> en.getMaxDataRate()
125.0
Code: Select all
>>> from Phidget22.Phidget import *
>>> from Phidget22.Devices.Encoder import *
>>> en = Encoder()
>>> en.setChannel(0)
>>> en.openWaitForAttachment(5000)
>>> en.getDeviceClassName()
'PhidgetVINT'
>>> en.getMaxDataRate()
50.0
Code: Select all
en.setDeviceSerialNumber(SerialNumberGoesHere)
en.openWaitForAttachment(5000)
Users browsing this forum: No registered users and 9 guests