I am using a 1067 stepper controller and would like to perform a series of TargetPosition commands that wait until the previous TargetPosition is reached. I've tried looping with a check of the Stopped condition but this just gets stuck in a loop. (I know this is bad practice on an event based system any way.) The work around I have at the moment is to calculate the travel time from current position to target position base on distance and velocity (with a little extra fro acceleration/deceleration) and place a Thread.Sleep command between TargetPosition calls. Trouble is it keeps the _OnPositionChange event handler from executing.
I am using VB2005. What's the best way to handle this problem.