フィルターのクリア

matlab serial communication buffer

3 ビュー (過去 30 日間)
Prashant Funde
Prashant Funde 2016 年 6 月 15 日
回答済み: Walter Roberson 2016 年 6 月 15 日
Hello sir,
I wanted to take output data continuously from my serial communication. even 48k buzzer size is also not enough for me.
Now i am using
Rcvd = fread(serial)
is it possible to use
Rcvd = fread(serial)% for first 512 bytes of data
Rcvd1 = fread(serial)% for next 512 bytes of data(513 to 1024)?
then clear one after another buffer

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 6 月 15 日
You can tell fread() how many items you want to read.

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by