Opening and closing remote servos on the SBC

Legacy support with Phidget21
danhoskin
Phidgetly
Posts: 45
Joined: Wed Jan 16, 2008 6:05 pm

Opening and closing remote servos on the SBC

Postby danhoskin » Tue Jan 19, 2010 6:15 am

Hi,

I am having an issue that hopefully someone here can help me out with. Here are the details:
Sofware:
Windows XP
VB6, (SP6)

Hardware:
PC -> Phidgets SBC -> Phidgets Advanced Servo

Application:
VB6 app that uses an Access database to store positions for the various servos, and position them according to the stored values.

Issue:
If I run the program it connects to the servo and runs properly. Closing the program and re-opening it gives the following error:
Runtime Error '-2147417851 (80010105)' Method 'Open Remote' of object 'IPhidgetAdvancedServo' failed.
I get the same error when I go from one form (the database form) to the other (operating form) in the same program. I am sure it has something to do with the way I am opening and closing objects, but I am not sure exactly what.
I am closing the servo object in the 'query unload' event on each form.
Any tips on how to handle this properly? Otherwise the SBC and the Advanced Servo work great.

Thanks,
Dan Hoskin

User avatar
Patrick
Lead Developer
Posts: 3091
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Opening and closing remote servos on the SBC

Postby Patrick » Tue Jan 19, 2010 10:42 am

If you attach the advanced servo directly to the computer and use open instead of openRemote - do you get the same behaviour?

-Patrick

danhoskin
Phidgetly
Posts: 45
Joined: Wed Jan 16, 2008 6:05 pm

Re: Opening and closing remote servos on the SBC

Postby danhoskin » Tue Jan 19, 2010 6:19 pm

No it does not do it when connected directly. What am I missing?

Dan


Return to “VB 6.0”

Who is online

Users browsing this forum: No registered users and 1 guest