PhidgetStepper_setAcceleration fails (with error 2, no such entity)
Posted: Tue Apr 28, 2020 4:11 am
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...)
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...)