Simulink Serial Receive Terminator not working? (R2019b)
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm trying to read data from an Arduino through serial. I'm sending the string "4.13,3.14\n" over and over. When I use the Sereial Receive block and specify the terminator as LF ('\n'), the block just keeps receiving data until it fully captures the expected size. That means, if I specify a size of [1 20], it captures as many characters as it needs to fill that spacem including the Terminator that I just specified.
Whenever I try to specify a header, it simply doesn't read any data.
Any ideas?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/398864/image.png)
The ASCII character 10 ('\n') gets recorded, even if I specified it as terminator
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/398869/image.png)
The block configuration
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!