Serial Object with Callback Function Ignores ASCII values > 127
이전 댓글 표시
Hello,
I am using a serial object to communicate with an FPGA. I created a callback function that has its terminator set to '\n\r', or [10 13] in ASCII values. The callback works as expected, up until the time I attempt to send ASCII values that are > 127 from the FPGA to MATLAB, even though the '\n\r' is still present at the end of the packet sent from the FPGA to MATLAB. Is there any reason the serial object would ignore ASCII values > 127 and not call the callback function?
Thanks,
Frank
답변 (2개)
Jan
2012년 9월 30일
1 개 추천
Please post your code. Perhaps your observation is not correct, e.g. if you store the data in an signed integer and convert it to an unsigned later on.
per isakson
2012년 9월 29일
0 개 추천
- CRLF, i.e [13,10] is used more often
- do you have 8 databits?
댓글 수: 3
Frank Schmidt
2012년 9월 29일
per isakson
2012년 9월 29일
I thought so.
Frank Schmidt
2012년 9월 30일
카테고리
도움말 센터 및 File Exchange에서 Standard File Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!