Matlab and Simulink Serial Communication

1 次查看(过去 30 天)
Hi everybody!
I need to open a serial COM port on Matlab, receive some data and then communicate on the same COM port in Simulink. However, it seems to be impossible to receive data in simulink since the COM port appears to be occupied by Matlab side.
Is it somewhat possible to receive data during a Simulink simulation from a port which has been already opened and set on matlab? If it is, how could I set this communication?
My idea is to transfer serial configuration information from Matlab workspace to the Simulink model (block?). How could I achieve this goal?
Thanks in advance!

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by