Packing simulink output data with communication protocol and transmit through serial port
3 views (last 30 days)
Show older comments
Hey guys: I'm current doing a hardware in the loop experience and the controlling board receive data from the simulink model which they share particular communication protocol. But the problem is how to pack the simulink data with communication protocol. Is s-function works? Thanks a lot
0 Comments
Answers (1)
Gayatri Menon
on 9 Nov 2022
Hey,
Consider using the Protocol decoder and Protocol encoder block to decode and encode data as per the specified packet structure. See the 'More About' section in the links for a few examples.
Hope this helps
Thanks
Gayatri
0 Comments
See Also
Categories
Find more on Communications Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!