ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino error with LabView

I am using LabVIew to control a 4 wire stepper motor through Arduino Uno. I get a 5001 error when i use the stepper pins 1,2,3,4 and a 5003 error whenever i use any other number pins. It is unclear which wires are connected to which pins on the board. 

Pin 1 is for communication but even if I use a pin other than 1, I get the 5003 error that the board is not recognized.

0 Kudos
Message 1 of 4
(4,630 Views)

Hi,

 

Are you using the Steppermotor lib from the Arduino site ? How do you comminicate in LV with the Arduino ?

 

Kees

0 Kudos
Message 2 of 4
(4,617 Views)

I'm using the LabView to Arduino Interface downloaded with the VI package manager. Running through and Arduino Motor Shield.

 

It is essentially a simplified form of the Stepper example in the example library.

 

 

0 Kudos
Message 3 of 4
(4,599 Views)

Hi,

 

I see e few things that are not OK.

 

- You have a VISA initialize in your VI. This is done within the INIT VI

- Most of the inputs of the INIT VI (except VISA) are not connect

- This also applies for the Stepper Configure VI

- Two inputs of the Stepper Write VI are not connected

 

Maybe you can leave some inputs unconnected but I think there are some inputs unconnected that have to have another value than the default one.

 

Kees

 

 

0 Kudos
Message 4 of 4
(4,578 Views)