キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Flashing Arduino file using labview

解決済み
解決策を見る

Thank you very much...

0 件の賞賛
メッセージ11/26
2,442件の閲覧回数

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 件の賞賛
メッセージ12/26
2,427件の閲覧回数

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 件の賞賛
メッセージ13/26
2,426件の閲覧回数

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 件の賞賛
メッセージ14/26
2,428件の閲覧回数

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

0 件の賞賛
メッセージ15/26
2,429件の閲覧回数

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.

========================
=== Engineer Ambiguously ===
========================
0 件の賞賛
メッセージ16/26
2,423件の閲覧回数

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

0 件の賞賛
メッセージ17/26
2,417件の閲覧回数

*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.

 

 

========================
=== Engineer Ambiguously ===
========================
0 件の賞賛
メッセージ18/26
2,413件の閲覧回数

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 件の賞賛
メッセージ19/26
2,410件の閲覧回数

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 件の賞賛
メッセージ20/26
2,403件の閲覧回数