Serial timeout before terminator

hi,
s = serial('COM1');
set(s,'BaudRate',4800);
fopen(s);
fprintf(s,'something to send')
out = fscanf(s);
fclose(s); delete(s);
I am using pic16f877a with matlab. I loaded this above code in matlab. but in command window, i am getting
Warning: A timeout occurred before the Terminator was reached.
what is this problem, how will transmit data's to pic and where can i see the received data?
pls help me, i am in need of.....

댓글 수: 1

Ecem Çetinyol
Ecem Çetinyol 2019년 7월 2일
Did you find any solution? I have the same problem now.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기

질문:

2012년 5월 19일

댓글:

2019년 7월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by