Info

此问题已关闭。 请重新打开它进行编辑或回答。

how can make loop ??

1 次查看(过去 30 天)
Abdoo
Abdoo 2014-11-22
关闭: MATLAB Answer Bot 2021-8-20
please help me .. i wanna make loop for my receive data, my program only receive data one time. the is the code:
s=serial('com1');
set(s,'BaudRate',9600);
fopen(s);
s.Terminator = 'CR';
B=fgets(s);
set(handles.text1,'string',B);
fclose(s)
delete(s)
clear s
  3 个评论
Abdoo
Abdoo 2014-11-25
I have attach two file Mr.Geoff Hayes plz if you can install my attach file and Edit it.
Geoff Hayes
Geoff Hayes 2014-11-25
Abdoo - I won't be able to run your GUI since I have no source to send data to the GUI via the serial port. Look at the links I posted, and consider how you can work that in to your code.

回答(0 个)

此问题已关闭。

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by