LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Stepper Motor

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.

0 Kudos
Message 1 of 3
(2,912 Views)

So you are controlling the Arduino via LV right?

 

To give any kind of meaningful answer we really need to see some code...

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,905 Views)

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?

-Jim B
Applications Engineer, National Instruments
CLD, CTD
0 Kudos
Message 3 of 3
(2,850 Views)