LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview arduino stepper motor

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!!

0 Kudos
Message 1 of 5
(3,358 Views)

Hi,

 

Please describe what you mean by "won't work". Tell us:

  1. Which example did you run?
  2. How did you set up your system?
  3. What did you try?
  4. What happened, and what error messages did you see?

Also, what version of LabVIEW do you have?

Certified LabVIEW Developer
0 Kudos
Message 2 of 5
(3,344 Views)

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 !!

0 Kudos
Message 3 of 5
(3,308 Views)

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!

Certified LabVIEW Developer
0 Kudos
Message 4 of 5
(3,292 Views)

Thank you JKSH!!

0 Kudos
Message 5 of 5
(3,271 Views)