From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-23-2018 10:06 AM
Thank you very much...
05-25-2018 05:47 AM
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
05-25-2018 05:52 AM
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.
05-25-2018 07:37 AM
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.
05-25-2018 07:38 AM
I am not able to upload the .ino file so I attached the image of that code.
05-25-2018 09:12 AM - edited 05-25-2018 09:15 AM
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/"
Oh and to upload a sketch use the insert code tag (looks like </> on the toolbar) then copy and paste your code into it.
05-25-2018 09:28 AM
ok,.. But now also I am getting the same error.
05-25-2018 09:38 AM
*Facepalm*
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.
05-25-2018 09:45 AM
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"
05-25-2018 11:51 AM
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!