I am having a hard time getting my pressure sensor to attach with the PressureSensor object. The part number for the sensor 1126 and the hub I am connecting to is a HUB0000_0. I am able to connect via the control panel and by the API as a VoltageRatio object attachment but not PressureSensor.
I notice that the pressure sensor example does not have a setishub... and when I try and add a line that does that in the appropriate space I get a error code 21 when trying to attach the device.
Thanks for the reply Patrick.
this is the section of the document that is confusing me:
"Converting the voltage to pressure (kPa) is not specific to this example, it is handled by the Phidget libraries, with functions you have access to when you begin developing!"
given this sentence it is my belief that the PressureSensor API should work with this device. Is that incorrect? (I am not even able to get the Pressure.py example to work).
The error I get after uncommenting and using the same channel and hub port that works with the VoltageRatio.py example is timeout (waiting to attach).
You should only be using the VoltageRatioInput API. The documentation is referring to the Sensor Type (see VoltageRatioInput API). By matching the Sensor Type to your analog sensor, the correct formula will automatically be applied to data when you get the SensorValue or subscribe to the SensorChange event.