Correct SampleTime for PacketOutput to Virtual COM-Port
显示 更早的评论
I'm using a packet output block in a rtwt simulink model to send data via an usb-to-uart interface to my target hardware. The detail I'm a bit confused about is which is the correct sample time. After experimenting a bit with packet input I figured out to use sendrate/packetsize in order to receive my data correctly (more precisely to detect the startflag). On the other hand all inputs of my packet output block are set with most recent data at all time so it could send them out all at once. I want to send 54 bytes 50 times per second Which is the correct sampletime for my packet output block and why: sendrate or sendrate/packetsize?
Thank you all in advance
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 System Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!