I would like to bump this issue. I now have a few cases in which 4103 out-of-range errors are thrown continuously for normal operating situations.
- The example above of the 350x current sensors with no current flowing.
- The 1101 distance sensor with no target in range
- The 1127 light sensor in absolute darkness
And, I am sure there are more. The only solution is to not use the libs to interpret the voltageRatio or voltage reading and do it myself. But, this defeats much of the advantage of using the Phidget22 libs.
It seems the simple solution would be to change the range settings on these sensors (analogsensor.c). However, there might be hidden downsides to that. The other option would be to add API methods to get and set the sensor range. Of course, I could just trap these errors. But, then I lose the ability to spot real problems.
In the meantime, do you have any ideas on how I might deal with this?