PhidgetStepper_setAcceleration fails (with error 2, no such entity)

Comments & issues
Post Reply
sbelgers
Fresh meat
Posts: 1
Joined: Tue Apr 28, 2020 4:03 am
Contact:

PhidgetStepper_setAcceleration fails (with error 2, no such entity)

Post by sbelgers »

On a STC1003 stepper controller, trying to set the acceleration fails.

Part of the code:
phReturn = PhidgetStepper_setVelocityLimit(stepper,velocityLimitMoveToSwitch);
result = (phReturn == EPHIDGET_OK);

if (result) {
phReturn = PhidgetStepper_setAcceleration(stepper, 10000.0);
}


The PhidgetStepper_setVelocityLimit works just fine, the stepper is correctly initialised. I just can't figure out why setting the acceleration won't work...
The error is 2, "no such entity".. (I have no clue on what this means...)
User avatar
Patrick
Lead Developer
Posts: 3403
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: PhidgetStepper_setAcceleration fails (with error 2, no such entity)

Post by Patrick »

You may be able to get some additional details by enabling library logging, and/or by calling Phidget_getLastError() after the failed call to get error details - have a look at the API docs for an example.

-Patrick
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests