Stepper current position

Comments & issues
Post Reply
clint
Fresh meat
Posts: 1
Joined: Tue Jul 03, 2018 5:37 am
Contact:

Stepper current position

Post by clint »

Hi

My problem is about handling a stepper motor with the new api phidget22

I have noticed with this new api that the controller looses the current position when the application is shutdown. When the application is restarted, the current position is automatically set to zero.

With the previous api phidget21, the current position was not modified and the application can restart with a correct position

Is it normal ?
User avatar
mparadis
Site Admin
Posts: 959
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Stepper current position

Post by mparadis »

This is expected behaviour in Phidget22. It was restructured so that a Phidget will always be in a predictable default state when attached. You'll have to keep track of currentPosition in your program by writing it to a file instead.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests