VINT Hub is not working with Python examples in Linux

Supporting 2.7 and 3.2+
satsriakal
Phidgetsian
Posts: 9
Joined: Sun Nov 12, 2017 3:44 am
Contact:

VINT Hub is not working with Python examples in Linux

Postby satsriakal » Sun Dec 10, 2017 11:03 am

OS: Linux Mint
Hardware: VINT Hub

Hi everybody,

If I connect the device and I launch Helloworld.c example, it works fine, but if I use VoltageInput.py example, the device even if attached, is not detected.
I reinstalled Python libraries. If I use InterfaceKit device, it works fine. But VINT Hub is not detected at all.
Can you help me, please?
Best regards
Beppe

User avatar
mparadis
Site Admin
Posts: 550
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: VINT Hub is not working with Python examples in Linux

Postby mparadis » Mon Dec 11, 2017 8:27 am

There are comments in VoltageInput.py that describe how to open a VINT Hub port in VoltageInput mode:

Code: Select all

    # Specifies that the channel should only match a VINT hub port.
    # The only valid channel id is 0.
    #
    # The default is 0 (false), meaning VINT hub ports will never match
    #
    # ch.setIsHubPortDevice(1)


You need to uncomment that last line. There are also similar comment blocks for opening specific ports, specific serial numbers, and for opening Phidgets remotely.

satsriakal
Phidgetsian
Posts: 9
Joined: Sun Nov 12, 2017 3:44 am
Contact:

Re: VINT Hub is not working with Python examples in Linux

Postby satsriakal » Fri Dec 15, 2017 12:21 pm

Thanks a lot!


Return to “Python”

Who is online

Users browsing this forum: No registered users and 1 guest