01-02-2014 03:25 AM
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.
Solved! Go to Solution.
01-02-2014 06:27 AM
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
01-03-2014 05:41 AM
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.
01-03-2014 06:46 AM
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?
01-14-2014 06:42 AM
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
01-15-2014 02:00 AM - edited 01-15-2014 02:00 AM
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