Mathlab can not write data to serial port suddenly!
이전 댓글 표시
Hello I use Mathlab to send data via to microcontroller. I done this already. But just yesterday, Mathlab can not send to serial port suddenly. I don't know this why? I didn't change the code. Everything is correct. No error, no warning. I checked serial port information: serial-COM1 Status: open Baudrate: 9600 Terminator: CR/LF I use "fwrite" and "fprintf" function to send to microcontroller.In Mathlab, no error, the ValueSent is also increasing but device can not receive the data. Note that I used Terminal to send to microcontroller. It work fine. Please explane to me
답변 (1개)
David Sanchez
2013년 5월 30일
0 개 추천
You may have created the serial object and are actually sending the signal to it, that is why no errors are returned. Make sure the COM number assigned to your devices has not changed.
댓글 수: 3
Duong Tu
2013년 5월 30일
David Sanchez
2013년 5월 30일
Are you sure not other application holds the serial port?
Duong Tu
2013년 5월 30일
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!