필터 지우기
필터 지우기

Fread performance is slow. Why?

조회 수: 5 (최근 30일)
Ecem Çetinyol
Ecem Çetinyol 2019년 7월 8일
댓글: Walter Roberson 2019년 7월 9일
Hello, i have a problem about fread. I don’t have any problem for fwrite but fread command is slower than it should be. How can i solve this problem?
  댓글 수: 7
Jan
Jan 2019년 7월 9일
Then the performance of fread depends on the speed of the transmitted data. So this is most likely either a problem of the Baud value used at opening the port, or it is a limitation of the sender. To check this, post any details: 1. the code you are using, 2. details about the connected device.
The lack of details let the readers of the forum guess, what your problem is, and this is inefficient.
Walter Roberson
Walter Roberson 2019년 7월 9일
Is it a true serial port, or is it serial over USB? Serial over USB is limited to 1000 USB packets per second in the most common situations. Best performance is with sending approximately 1000 bytes per packet, and making sure that you have increased your serial port buffer sizes.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by