VINT python help

Supporting 2.7 and 3.2+
Fresh meat
Posts: 3
Joined: Mon Jan 19, 2015 1:06 pm

VINT python help

Postby florisvb » Mon Jun 04, 2018 10:08 am

I am trying to collect data in python from an RTD device hooked up to a VINT hub. The VINT hub is connected to a ubuntu machine. When I run the (Manager) from the VINT hub shows up, however, I can't figure out how to actually get the RTD resistance data.

When I run either the or the examples I just get a time out. What do I need to change in those scripts to get them working with the VINT hub?

Posts: 12
Joined: Wed Dec 27, 2017 6:59 am

Re: VINT python help

Postby DarkLight » Sun Aug 12, 2018 9:16 am

This is code for temperature sensor connected to VINT (actually, a humidity phidget HUM1000_0, but it should work with any temperature sensor connected to VINT...)

Code: Select all

# -*- coding: utf-8 -*-
from Phidget22.Devices.TemperatureSensor import *
from Phidget22.Net import *

TempArray = []

i = 0

while 1:
    ct = TemperatureSensor()
    except PhidgetException as e:

for i in TempArray:
    print("Serial: %s Temperature: %0.2f°C" % (i.getDeviceSerialNumber(), i.getTemperature()))


Return to “Python”

Who is online

Users browsing this forum: No registered users and 1 guest