Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how can make loop ??

조회 수: 2 (최근 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