Using Matlab GUI with Arduino support package

Is it possible to read analog input pins and command digital outputs of an Arduino board through a GUI? Is it possible to create a standalone application that could be run in any computer without Matlab installed?

1 件のコメント

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2013 年 8 月 28 日
編集済み: Rolfe Dlugy-Hegwer 2013 年 8 月 28 日
Let me try to repeat your question to see if I understand it correctly. Using MATLAB (and related products), can I:
  • Create a GUI application that runs on a host computer without MATLAB?
  • Use the application to get data from an analog input on Arduino?
  • Use the application to send data from a digital output on Arduino?

サインインしてコメントする。

回答 (1 件)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2013 年 8 月 29 日
編集済み: Rolfe Dlugy-Hegwer 2013 年 8 月 29 日

1 投票

Can I:
  • Q: Create a GUI application that runs on a host computer without MATLAB?
  • A: Doing this requires the "MATLAB Compiler" product.
  • Q: Use the application to get data from an analog input on Arduino?
  • Q: Use the application to send data from a digital output on Arduino?
  • A: Yes to both questions. Using the serial port, Arduino can get values from one of its Analog input pins and send them to a host computer. Similarly, you can send values to the Arduino board and set one of the Digital output pins to that value.

2 件のコメント

André Silva
André Silva 2013 年 8 月 29 日
And am I able to generate a standalone aplication that does all of this?
Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2013 年 8 月 29 日
編集済み: Rolfe Dlugy-Hegwer 2013 年 8 月 29 日
You would create two applications:
  • Create the standalone app using MATLAB Compiler. The stand-alone application that does not require a MATLAB installation on the host computer where you run it.
  • Create an application for the Arduino board using either:the MATLAB Support Package for Arduino, or the Simulink Support Package for Arduino Hardware (by running "targetinstaller" from the MATLAB Command Window.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Arduino Hardware についてさらに検索

質問済み:

2013 年 8 月 25 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by