Matlab GUI interface with Arduino

1 回表示 (過去 30 日間)
asdf asdf
asdf asdf 2015 年 9 月 15 日
コメント済み: asdf asdf 2015 年 9 月 15 日
I have two questions: 1. How do I use a table in Matlab GUI that continuously takes various sensor data from Arduino? On one column I want it to be the time. 2. How will I continuously display the Arduino sensor data in a static text?
The difference between (1) and (2) is that in (1) all the data are seen or recorded and in (2) the data seen are the real time values.
This is the code I've used in the Matlab:
global a;
i = 0;
while i==0
p=fscanf(a);
set(handles.statictext1,'String',p);
pause(0.05);
end
Please I need answers ASAP. I am using serial communication. Please explain with an example if you can. Thanks!!!
  2 件のコメント
asdf asdf
asdf asdf 2015 年 9 月 15 日
:/

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by