PhidgetStepper_setAcceleration fails (with error 2, no such entity)

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

PhidgetStepper_setAcceleration fails (with error 2, no such entity)

Postby sbelgers » 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...)

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

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

Postby Patrick » Tue Apr 28, 2020 2:14 pm

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


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests