Performing fread operation in Simulink
1 次查看(过去 30 天)
显示 更早的评论
Hi every body
as you know if we use [A,count]=fread(obj) it gives us the nuber of read bytes in the count.
so we can find how many bytes we have read through the obj and so let us decide how to use them efficiently.
now there are ways to read through serial ports in the simulink like packet input, serial receive, stream input and ... but no one of them let us know about the length of data they have read and so we can not (at least in the case that i am working) use it properly
The question is about the way that we can determine the length of data we have read through a serial port in the simulink (exactly the role that count plays in [A,count]=fread(obj)]
any help on this subject will be appreciated. (I also appologize for the poor and weak english I wrote in-sorry for that)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Block Libraries 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!