Hi everybody,
I drive a stepper motor with NI Motion. The user can enter a number of steps as the target position of the motor at the front panel, which is connected to the corresponding VI in the block diagram ("target position"). As I don't only want to stop the motor (when it made the desired steps), but als the measurements within another while loop, I tried to compare the target position with the output of the actual position (NI Motion VI) and wired the result to a local variable, which stops the two while loops when it's true.
It works perfectly for a desired move of 45° or 90° (rotation of motor, corresponding number of steps is calculated within the program), but if I want the motor to rotate 30° or 75° or anything else, the motor stops, but not the other while loop (measurements). Does anybody have an idea why?
I don't have any feedback from the motor, so the actual position is only calculated I guess. But why does it work with 45° and 90° and doesn't work with any other number of degrees?
Looking forward to your answer! Maybe there is another way to handle this.
Thanks!
Steffi