Python 2.7, Phidget22.
I am seeing a general issue using 0-5vdc voltage-input(classic) Phidgets. If I define a specif voltage-input Phidget (eg, an 1127) if the sensor value reaches 0, I receive "Sensor value is ouside the valid range" errors. In fact, it is not just my code, the Phidget Control Panel reports the same errors.
To test this, in the Phidget Control Panel, open a voltage-input port on an unused Interface Kit or VINT hub and set the Sensor-Type to an 1127.
I have found I can generally reduce the problem by setting Voltage change trigger to some small value, like 0.02.
. However, it really seems this issue should be addressed in the Phigdet22 libs. Perhaps it might just be a change to allow 0vdc (or getMinVoltageChangeTrigger) as a valid reading, or perhaps to allow the user to set the low Sensor value threshold (perhaps on a device basis).
BTW, I considered using setVoltageChangeTrigger() to getMinVoltageChangeTrigger() for the devices I am having trouble with. However,they all report 0.0 as the minimum.
But, first, am I missing something here?
BTW, note the spelling error in the error message: ouside