Page 1 of 1

PhidgetStepper_setAcceleration fails (with error 2, no such entity)

Posted: Tue Apr 28, 2020 4:11 am
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...)

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

Posted: Tue Apr 28, 2020 2:14 pm
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