VINT Hub not connecting..

Supporting Visual Studio on Windows
crwk78
Fresh meat
Posts: 4
Joined: Sat Mar 22, 2014 9:53 am

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
You do not have the required permissions to view the files attached to this post.
User avatar
mparadis
Site Admin
Posts: 679
Joined: Fri Oct 28, 2011 12:17 pm

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
Fresh meat
Posts: 4
Joined: Sat Mar 22, 2014 9:53 am

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: 672
Joined: Mon Jun 20, 2005 8:46 am
Location: Calgary

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