Card k8097, my stepper motor doesn't move regularly

Hello,

I use function SMCMove of dll mtrapi32 to command my stepper motor. To understand some troubles in my application, I wrote a very simplified program in which I only call a timer and function SMCMove (my program doesn’t lose any time with others functions) :

while (true)
{
waitEndOfTimer;
SMCMove(0, 1, 0, 200);
}

with this kind of program, I would expect a regularly move of my motor, but sometime some motor steps are skipped, the motor doesn’t turn regularly.

have you already note this kind of dysfunction, how to solve it ?

Thank you

I’ve never heard of a “waitEndOfTimer” function… no idea what it does

function “waitEndOfTimer” spend some time, in fact I would like to have a regulaly move of motor on each event of a timer.
My timer is regulaly but not motor.

I resolved this issue by activating torque of motors, motors position is not well guaranted without setting function SMCSetTorque to true.

Which motor(s) you using?