VCP1001 Error: AttributeError: 'VoltageInput' object has no attribute 'setDataRate'
Posted: Wed Jul 20, 2022 2:19 pm
Trying to use the setDataRate method (per documentation), on the VCP1001 but getting the following error:
I'm using python 3.8.10 with libphidget22-1.10.20220530 and python module v 1.6.20201024.
Any suggestions?
Code: Select all
voltageInput0 = VoltageInput()
voltageInput0.setHubPort(0)
voltageInput0.setOnVoltageChangeHandler(onVoltageChangePort0)
voltageInput0.setOnErrorHandler(onError)
voltageInput0.openWaitForAttachment(1000)
voltageInput0.setVoltageChangeTrigger(0.0)
voltageInput0.setDataRate(1000)
Code: Select all
AttributeError: 'VoltageInput' object has no attribute 'setDataRate'
Any suggestions?