Hi, I am using ATmega2560 Arduino board and I want to flash a arduino (.ino) file using VISA from labview. but the program returns VISA write timeout (1073807339) error. Is it possible to flash arduino file from labview?. If it is how to flash the arduino file?
Solved! Go to Solution.
What should the Arduino do with a .ino file ?
An Arduino is a embedded chip that need a compiled code to run. You need to compile your .ino file and then transfer the compiled code to the Arduino.
You might be able to do that with a external exe file, that comes with the Arduino compiler.
Arduino compiler in lab view is available refer below link.
better to use the arduino IDE available in arduino website.
Actually I want to set some digital pins with different delays. For that I used Arduino interface for LabVIEW and it is working. But I need very small delay between two digital pins( in the order of ms). The minimum delay I am achieving is 20ms (Digital Write VI itself taking 20ms to set the pin as 1 or 0). So I tried with Arduino file(.ino file) which will run in the Arduino board continuously. I am able to flash the Arduino file with the Arduino compiler. But I want to do this from LabVIEW. I had flashed binary files (.bin files) using LabVIEW VISA succesfully and it is working well. Similarly I want to do the same thing for Arduino(.ino) files. Is it possible to flash .ino file using VISA or is there any other options to control and automate the Arduino compiler to flash the file into the board?
You still need to compile your ino files, you can't do anything with a bare ino file on a Arduino.
Then, if you really want to use VISA for transfer, you need to learn the bootloader protocol of the Arduino to be able to get it into bootloader mode, and then you can transfer your compiled code.
I would try to Google how you compile an arduino file from an external program, and use the programs that comes with the Arduino IDE to compile and transfer the code to your Arduino board.
Thank you very much.. I will also search for that..
Arduiuno compatible compiler for labVIEW - how will this work? and do I need to install this?
If you expand the lower window in the Arduino IDE while you are programming you will see that the Arduino IDE calls another program (AVRdude) and AVRdude actually programs the Arduino.
So why not just call AVRDude with the LabVIEW systemexec.vi?
Well you would have to read the Avrdude documentation for all the command line parameters...
But dkfire has a better idea really as all you need to do is call the Arduino IDE with the Systemexec.vi using a command line
arduino [--verify|--upload] [--board package:arch:board[arameters]] [--port portname] [--pref name=value] [-v|--verbose] [--preserve-temp-files] [FILE.ino]
BTW: This is the Systemexec vi
You will find it under Connectivity----->Libraries & Executables in the pallet.