LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

arduino labVIEW interface

Solved!
Go to solution

hey,

I have interfaced arduino and labVIEW 2012. I run the LIFA_Base file in arduino window and then close it and run my program in labVIEW. every time i stop the program in labVIEW and next time i run the program in labVIEW it doesnt until i reupload the LIFA firmware. So, whats the solution such that i need not upload the LIFA firmware every time.

Kindly reply fast.

Vanashree.

0 Kudos
Message 1 of 6
(3,496 Views)

vanashree,

 

Are you running the program for digital IOs?

 

As you have said that you flashed th LIFA_Base in Arduino using its latest software can you please provide us the error message that you are getting?

 

The best thing to try the digital IOs or any low level examples for arduino always try to initialize and at the end close the session.

 

See the screenshot

 

Also please check the below links for better interface with arduino

 

Community for Arduino on National Instruments

 

https://decibel.ni.com/content/docs/DOC-15971

 

http://digital.ni.com/public.nsf/allkb/8C07747189606D148625789C005C2DD6

 

 

 

0 Kudos
Message 2 of 6
(3,463 Views)

hey,

in my application i need to do following intenstions:

1) send selected data from an array to arduino. on identifying the data from labVIEW, arduino will take control and pass binary serial data corresponding to the hardware.

2) once the hardware produces the analog output this is connected back to analog pin and send to display in front panel as a feedback.

i need to achieve this using visa and arduino.

kindly help.

regards

vanashreee.

0 Kudos
Message 3 of 6
(3,410 Views)

Vanashree,

 

My question was related to the error.

 

The thing which you want to achieve is straightforward.

 

But  flashing the arduino again and again will not solve the purpose.

 

Please attach your code(if possible).

 

Or if you run twice the code are you getting any error message?

 

0 Kudos
Message 4 of 6
(3,402 Views)

in the attachment i have arduino analog read prog which shows variations in the serial monitor.but labview doesnt show any value in the indicator. i want to display the variation in the analog value at the indicator display.kindly help

 

0 Kudos
Message 5 of 6
(3,085 Views)
Solution
Accepted by topic author vanashree

Vanashree,

 

I think your code is good enough to read serial data.

 

Please check the attached sketch(which is same as whatever you have uploaded to arduino) also i have attached the LabVIEW VI to read serial data.

 

Please make sure that the COM port you are using for arduino should be same for LabVIEW.

 

Also close the arduino.exe( the software through which you have uploaded the sketch.

 

Then run the LabVIEW VI provided.

 

 

Better use of arduino with LabVIEW you can find step by step information here

Message 6 of 6
(3,047 Views)