‎05-23-2013 04:22 PM
Hi folks,
Im working with labVIEW interface for arduino to control a stepper motor. Im using a L6470 stepper driver from sparkfun. I tried running the example VI given in labVIEW but it wont work. Can anyone please give any help on this? Is the example meant for easy drivers only and if so how should I modify this program to run with the L6470. Please please help!!!! Im very new to labVIEW.
Thank you!!
‎05-23-2013 10:31 PM
‎05-25-2013 08:19 AM
Hi,
I have labVIEW 2012 student version and Arduino 1.0.4. When I run the motor with Arduino coding (C+) the motor runs fine. But then I used the stepper motor example given in labVIEW.(https://decibel.ni.com/content/docs/DOC-20084). The motor wont run. It gives me 5002 error saying it cannot establish a conncetion with Arduino. But I have selected the correct port and board and to double check I ran a simple LED blink VI and the Arduino responded just fine. So I was wondering if the example given was specifically for easy drivers and not for L6470 drivers. Or is it some other error?
Thank you !!
‎05-26-2013 03:09 AM
Hi mudithadias,
I don't have experience with programming Arduinos using LabVIEW, so I'm afraid I can't help you with exact details. However, if the example was written for a different driver, then it's possible that the example uses incompatible settings (e.g. wrong baud rate?), so you may have to edit the example first.
As a general rule of thumb, error codes are very useful: Search for them, because there's a good chance that others have faced the same problem and found a solution. In your case, search Google for "LabVIEW error 5002".
Good luck!
‎05-26-2013 11:32 AM
Thank you JKSH!!