Search Results

by headcrash
Sat Aug 19, 2017 4:33 pm
Forum: Python
Topic: setSensorType
Replies: 2
Views: 5957

setSensorType

I've run into an issue using the Phidget22 API (Python 2.7) setSensorType method. It works ok for me, but I have found I need a half-second sleep delay after using it before I can use a getSensorValue. Without a delay I get a "Phidget Exception 51: Unknown or Invalid Value" error. It does ...
by headcrash
Fri Aug 18, 2017 2:38 pm
Forum: Python
Topic: Can't make Python scripts work
Replies: 7
Views: 12389

Re: Can't make Python scripts work

I'm not familiar with the 1051 Temperature sensor, but you might have to set the ThermocoupleType before calling the getTemperature method?
by headcrash
Fri Aug 18, 2017 4:42 am
Forum: Python
Topic: Can't make Python scripts work
Replies: 7
Views: 12389

Re: Can't make Python scripts work

You need to give it time to attach before trying to call it. You could just put a sleep(1) after your open, but that would be inefficient, especially if opening a lot of devices. Better to replace your open() with openWaitForAttachment(5000) if going for basic or even better use events if going for ...
by headcrash
Thu Aug 17, 2017 11:33 am
Forum: Python
Topic: getSensorValue - Phidget21 vs Phidget22
Replies: 3
Views: 4777

Re: getSensorValue - Phidget21 vs Phidget22

Thanks, I think I got it. I shouldn't use getSensorValue without first setting the sensor type to 0x2be8 (11240) in the case of my 1124 temp sensors. I tried that and do indeed get back the temp in degrees Celsius. I also tried applying a formula to the VoltageRatio itself by working backward from w...
by headcrash
Thu Aug 17, 2017 7:51 am
Forum: Python
Topic: getSensorValue - Phidget21 vs Phidget22
Replies: 3
Views: 4777

Re: getSensorValue - Phidget21 vs Phidget22

Here's a simple test program that illustrates my issue. For this test, I'm using an 1109 Rotation Sensor (pot) instead of a temp sensor. As I rotate the pot, the VoltageRatio changes while the SensorValue remains the same as its initial reading. from time import sleep from Phidget22.Phidget import *...
by headcrash
Thu Aug 17, 2017 6:08 am
Forum: Python
Topic: getSensorValue - Phidget21 vs Phidget22
Replies: 3
Views: 4777

getSensorValue - Phidget21 vs Phidget22

I have a Python program I've been using for years to monitor my home heating system. At one time or another I've used it under both Linux and Windows. The Phidget hardware consists of a 1018-1 interface board and (6) 1124 temperature sensors. At the heart of the program it polls all the temperature ...
by headcrash
Tue Aug 15, 2017 8:24 am
Forum: Linux
Topic: libphidget22.so.0.0.0: cannot open shared object file
Replies: 10
Views: 17896

Re: libphidget22.so.0.0.0: cannot open shared object file

Regarding "libphidget22.so.0.0.0: cannot open shared object file" error: I'm running 64 bit Ubuntu 16.04.3 on a 64 bit machine. I installed libphidget22, libphidget22extra, libphidget22java, phidget22networkserver and phidget22admin manually as per instructions. All installed ok and ran c ...
by headcrash
Fri Aug 11, 2017 2:51 pm
Forum: Other
Topic: Home Fuel Oil Boiler/Furnace Monitor
Replies: 1
Views: 16793

Home Fuel Oil Boiler/Furnace Monitor

The hardware for my current home heating system and environment monitor consists of a Phidgets 8/8/8 Interface connected to a Beagleboard xM single board computer. The Beagleboard is running Ubuntu 16.04 Linux headless. It is accessible on my home network from computers running Windows 10. At presen...