Feature changes in phidgets22 vs phidgets21

Comments & issues
roger.oberholtzer
Phidgetsian
Posts: 7
Joined: Mon Sep 25, 2017 5:51 am
Contact:

Re: Feature changes in phidgets22 vs phidgets21

Post by roger.oberholtzer »

In PhidgetVoltageRatioInput_setVoltageRatioChangeTrigger(), I tried setting the change to 0.0. So I would expect the PhidgetVoltageRatioInput_setOnVoltageRatioChangeHandler()'s function to be called somewhat regularly. It is only called once when the device is attached. Never again.
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Feature changes in phidgets22 vs phidgets21

Post by mparadis »

Instead of using the sensor, try connecting the white wire on the sensor cable to the red wire. This should cause the voltageRatio to rise up to almost 1.0. I just tried this using the C VoltageRatioInput example for Phidget22 using port 0 on the interfaceKit, it will work without any code modification.

If that works, try putting the humidity sensor to port 0. If the voltageRatio doesn't give any data, then it's the sensor that's faulty. If it works, we'll need to look at a larger piece of your code.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests