07-07-2014 03:23 PM
I am currently using the arduino stepper motor example to control a stepper motor from sparkfun with an easy driver. The example works perfectly on the first run, however when I press the stop button and try running it again, i have to change the stepper motor number to make the stepper motor work again. I avoid using the abort button, as that can cause problems since the arduino is not completely closing off all its programs.
Can someone explain why this is happening? Thank you.
07-07-2014 03:45 PM
So you are controlling the Arduino via LV right?
To give any kind of meaningful answer we really need to see some code...
Mike...
07-08-2014 09:41 AM
If you're talking about the example in the example finder, it uses an event structure, and it looks like it only actually "writes" to the stepper motor task when either the dial value changes or when the "Start Stepping" button is pressed.
Just starting the VI won't necessarily start the stepper motor, though.
Is this in line with what you're seeing?