06-25-2013 06:17 PM - edited 06-25-2013 06:19 PM
Hi,
I have a stepper motor which I want to drive using an Arduino Mega, i am using labview 2012.
If i input a positive value in the "set input speed" control box then the motor moves forwards at the appropriate rate.
If i input a negative value in the "set input speed" control box then the motor moves backwards at the appropriate rate. However, if I then change the the speed ther motor moves forward at the new speed, not backwards, even though a negative value is entered.
No matter what the previous value, the motor always moves forward using a positive value. However, if i change the speed from say -100 to -101 then the motor will move forward at 101, not backwards as it should.
I know that the value received by the pin of the "stepper write.vi" is getting the correct signal, and have tried to dig into the sub vi's, but i soon get to a point where i don't understand what's going on.
Has any one else encountered this problem, know why this is occuring, or better still solved the issue?
I have attached a copy of the simple vi and images.
06-26-2013 05:49 PM
Hi Carlr,
Thanks for posting at NI forums. I would recommend you to post your question in the Arduino community. They should be able to help you better.
Best Regards,
Alina M
Applications Engineering
National Instruments