Blocked Stepper Controller

C, C++, and Visual C++
Post Reply
PSoares
Fresh meat
Posts: 1
Joined: Tue Jun 25, 2019 8:33 am
Contact:

Blocked Stepper Controller

Post by PSoares »

Hi,

I'm having a problem where a stepper simply blocks.

I'm using 12 stepper controllers attached to 2 VINT Hubs connected via USB to a PC.

My application forces me to send each stepper a target position every 50ms.
Velocity and acceleration are not changed.
I'm using PhidgetStepper_setTargetPosition_async and also tried PhidgetStepper_setTargetPosition with the same results.

Using Qt c++ and each PhidgetStepperHandle is controlled by a different thread so I don't block myUI.

Everything runs smoothly for a while but eventually steppers start blocking.

I get no error event.
PhidgetStepper_getIsMoving returns 1
PhidgetStepper_getEngaged returns 1
and PhidgetStepper_getVelocity returns non zero
PhidgetStepper_getPosition never changes while it is blocked.

The only way I have to "reboot" the stepper is
PhidgetStepper_setEngaged(false);
PhidgetStepper_setEngaged(true);

every thing runs smoothly again......until it blocks again.

Any idea what I could be doing wrong?

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

Re: Blocked Stepper Controller

Post by Patrick »

There was a firmware bug which was fixed. Have you upgraded to the latest firmware? Install the latest control panel and and upgrades will show in red. Double click to install.

-Patrick
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests