LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Flashing Arduino file using labview

Solved!
Go to solution

Thank you very much...

0 Kudos
Message 11 of 21
(244 Views)

when I run the program, I get an error - "Error 2 occurred at System Exec.vi, possible reasons LabVIEW: Memory is full, NI-488: no listeners on the GPIB". how to solve this?

And can you please tell me the syntax which I need to type in the command line input of the System Exec.vi. I am using Arduino MEGA 2560 board, port number is COM6, file name Blink.ino

0 Kudos
Message 12 of 21
(229 Views)

How do you think we can help you with the information you have given? 

We can't what you are doing, you need to show us your code that generate the error. 

 

And for the commandline, in the link there are perfect documentation on what you need to enter. 

0 Kudos
Message 13 of 21
(226 Views)

Sorry for that information. Actually I want to upload the arduino program into the board from Labview. I attached the arduino program and VI. I am using the arduino for start and reset of my another board and it is automated using labview. so I want to do the arduino part also from the labview. so that it can be completely automated. 

0 Kudos
Message 14 of 21
(224 Views)

I am not able to upload the .ino file so I attached the image of that code.

0 Kudos
Message 15 of 21
(223 Views)

Well my first guess is where it says "/path/to/sketch/sketch_may21a.ino" you should put the actual path to your sketch not "/path/to/sketch/"

 

aeCapture.PNG

 

Oh and to upload a sketch use the insert code tag  (looks like </> on the toolbar) then copy and paste your code into it.

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
0 Kudos
Message 16 of 21
(215 Views)

ok,.. But now also I am getting the same error.

0 Kudos
Message 17 of 21
(209 Views)

*Facepalm*

 

Systemecex.vi 

 

command line indicates the command LabVIEW calls to run a program. If the executable is not in a directory listed in the PATH environment variable, the command line must contain the full path to the executable. (Windows) To use a command that must be executed directly from a command prompt window, insert cmd /c before the command.

 

 

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
0 Kudos
Message 18 of 21
(205 Views)

By using this command given to the input of system Exec.vi, I am able to open Arduino IDE. but I don't know how to upload the code from labview.

cmd /c "C:/Program Files (x86)/Arduino/arduino.exe"

0 Kudos
Message 19 of 21
(202 Views)

You can't just put the entire text of your source code in the command line arguments, you have to specify the location of the .ino file that contains that source code!

0 Kudos
Message 20 of 21
(195 Views)