Search Results

by berkinet
Mon Aug 09, 2021 9:57 am
Forum: Python
Topic: P22 on a R-Pi question
Replies: 9
Views: 25809

Re: P22 on a R-Pi question

Hmmm... well, I found I can get the library version like this

Code: Select all

print(phidget.getLibraryVersion())
version: Phidget22 - Version 1.7 - Built Jul  6 2021 11:31:54
But, that requires creating a phidget object first. Is there, maybe, a way to get that without first creating an object?
by berkinet
Mon Aug 09, 2021 9:28 am
Forum: Python
Topic: P22 on a R-Pi question
Replies: 9
Views: 25809

Re: P22 on a R-Pi question

Thanks... but, that gets me the version installed for the system. Which, as you note, I can get from pip. I wanted to get the version of a copy of the libs I have embedded in my plugin project.
by berkinet
Mon Aug 09, 2021 8:53 am
Forum: Python
Topic: P22 on a R-Pi question
Replies: 9
Views: 25809

Re: P22 on a R-Pi question

Once again, thanks for the response. I am using a copy of the libs embedded in the plugin I am writing. So, I should not be getting issues with the system install. But, I will update to be sure. Question: Is there a way to tell the version of the libs I am using in a program?
by berkinet
Sat Aug 07, 2021 11:41 am
Forum: Python
Topic: P22 on a R-Pi question
Replies: 9
Views: 25809

Re: P22 on a R-Pi question

Ok, so I found the unit name as sensorUnit.name. All ok. Just one question, where is that documented? The API pages do not show that.
by berkinet
Sat Aug 07, 2021 8:53 am
Forum: Python
Topic: P22 on a R-Pi question
Replies: 9
Views: 25809

P22 on a R-Pi question

I have a R-Pi running the Phidget22 Network server (up-to-date) with an attached 1018 interfaceKit. In my onSensorChangeHandler, I can read sensorValue, but not sensorUnit. When I type it I get... <class 'Phidget22.UnitInfo.UnitInfo'> Attempting to display that, even as a string, just blows up. Ideas?
by berkinet
Sat Aug 07, 2021 2:47 am
Forum: Python
Topic: Sensor value is ouside the valid range...
Replies: 13
Views: 33539

Re: Sensor value is ouside the valid range...

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...
by berkinet
Thu Aug 05, 2021 3:08 pm
Forum: Python
Topic: Get sensor info from libs
Replies: 6
Views: 20121

Re: Get sensor info from libs

And, a follow-on question. For voltage and voltageRatio devices connected to standard (non-VINT) ports, is it possible to getSensorUnit() before the device has a sensor change trigger event. Example. I open a current sensing phidget on a circuit that is currently off. I would like to know the sensor...
by berkinet
Thu Aug 05, 2021 10:15 am
Forum: All Other Phidgets
Topic: Genral purpose relay and VINT hub
Replies: 1
Views: 7966

Genral purpose relay and VINT hub

When using a general-purpose relay with the digital output of an interfaceKit, you need to power the relay from a 5vdc source on the ifKit. Typically (and per the instructions for the 3051 dual-relay Phidget) the relay is powered from an analog input and triggered from a digital output. Now, when us...
by berkinet
Wed Aug 04, 2021 9:48 am
Forum: General
Topic: Bug in Phidget22 lib?
Replies: 2
Views: 4623

Re: Bug in Phidget22 lib?

Thanks for your attention to this issue.
by berkinet
Tue Aug 03, 2021 5:43 pm
Forum: Python
Topic: Get sensor info from libs
Replies: 6
Views: 20121

Re: Get sensor info from libs

… and thanks for the response. The key info I need is the unit (fir data presentation) and range (for configuration validation), and I have already scraped that from the source. I was just wondering if there might be a better way to get it.