VB6 Error on PhidgetAdvanced Servo for setting Velocity Limi

Legacy support with Phidget21
mattford1

VB6 Error on PhidgetAdvanced Servo for setting Velocity Limi

Postby mattford1 » Mon Jul 26, 2010 2:43 pm

Hi-

When I try setting the velocity limit in vb6:

PhidgetAdvancedServo.VelocityLimit(0) = 1000

I get a compiler error "Invalid Procedure Call or Argument"

In the documentation it shows that this is a writable function.

Any ideas?

Thanks,
matt

fraser
Engineering
Posts: 237
Joined: Thu Nov 19, 2009 4:41 pm
Contact:

Re: VB6 Error on PhidgetAdvanced Servo for setting Velocity

Postby fraser » Mon Jul 26, 2010 2:54 pm

you have to create an object of type PhidgetAdvancedServo and set the object's Velocity limit, not the limit of the object type.

mattford1

Re: VB6 Error on PhidgetAdvanced Servo for setting Velocity

Postby mattford1 » Mon Jul 26, 2010 2:59 pm

Hi-

Sorry not sure I follow. I'm able to set other parameters such as:

PhidgetAdvancedServo.PositionMax(0) = 100

So what is the difference?

Thanks for your help!
Matt

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

Re: VB6 Error on PhidgetAdvanced Servo for setting Velocity

Postby Patrick » Mon Jul 26, 2010 3:15 pm

1000 is probably too high - make sure you are setting it to less then VelocityMax.

-Patrick


Return to “VB 6.0”

Who is online

Users browsing this forum: No registered users and 1 guest