VINT Hub not connecting..

Supporting Visual Studio on Windows
Post Reply
crwk78
Phidgetsian
Posts: 6
Joined: Sat Mar 22, 2014 9:53 am
Contact:

VINT Hub not connecting..

Post 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
Attachments
Screenshot 2022-07-26 14.39.28.png
(116.33 KiB) Not downloaded yet
User avatar
mparadis
Site Admin
Posts: 959
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: VINT Hub not connecting..

Post 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.
crwk78
Phidgetsian
Posts: 6
Joined: Sat Mar 22, 2014 9:53 am
Contact:

Re: VINT Hub not connecting..

Post 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
User avatar
Patrick
Lead Developer
Posts: 3399
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: VINT Hub not connecting..

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest