Page 1 of 1

VINT Hub not connecting..

Posted: Tue Jul 26, 2022 7:43 am
by crwk78
Hi,

Can you tell me what I’m doing wrong here?

The temperature sensor and VINT hub are connected via USB and visible / functioning in the Phidget software.

But when I debug the attached code, the Phidget is not detected.

Any ideas?

Thanks,

Charlie K

Re: VINT Hub not connecting..

Posted: Tue Jul 26, 2022 7:56 am
by mparadis
What kind of temperature sensor is it?

Are you able to see it when you open the Phidget Control Panel?

Your program only checks if the Phidget is attached once- it's possible the "Attached" flag hasn't been set yet in the small time between Open() completing and checking the attached status.

Re: VINT Hub not connecting..

Posted: Tue Jul 26, 2022 8:13 am
by crwk78
Hi,

It's a Temperature Phidget TMP1000_0.

Yes, I can see it in the Control Panel.

Even if I set the open time to over 60000ms there is still no connection.

Thanks,

Charlie K

Re: VINT Hub not connecting..

Posted: Wed Jul 27, 2022 10:32 am
by Patrick
Your issue is likely using a blocking open call in the GUI load event - this can lead to a deadlock. You should call the non-blocking open() after registering a Phidget attach event, and interact with the Phidget from it's attach event.

-Patrick