Blocked Stepper Controller

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

Blocked Stepper Controller

Postby PSoares » Tue Jun 25, 2019 8:45 am

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: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Blocked Stepper Controller

Postby Patrick » Wed Jul 03, 2019 8:33 am

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


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 2 guests