How to get Simulink to read data from serial port in real time.

5 次查看(过去 30 天)
Currently my Simulink program reads data from a .mat file. I need to change it so it can read data from the serial port or matlab workspace as it comes in real time and output processed data in real time as well. One option is to purchase the real time toolbox. Another is to use the encoder to write C code and use that.
Anybody ever done anything like this? Which would work better?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Block Libraries 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by