11-11-2011 04:48 PM
Object: Send a step signal to a stepper motor driver at regular intervals. My first try using a for loop was a failure because data is only passed out of a for loop when the loop terminates. Instead this application requires data to be passed out of a for loop on every iteration.
What if any modifications can be made to a for loop to output data on each iteration? Or if a for loop is not appropriate for this application what is a better approach?
Howard
Solved! Go to Solution.
11-11-2011 04:53 PM - edited 11-11-2011 04:54 PM
A loop sounds like a reasonable approach. But you will have to send the signal in each loop iteration, so talk to the stepper motor inside the loop at each iteration. You might also want to think about loop timing (how fast do you want to send commands to your motor) and stopping of the loop (e.g. user clicks a stop button).
Another concept you might want to get familiar with are state machines. The LabVIEW courses cover these, and there are many posts regarding state machines here on the forum.