How to export simulink data to workspace during simulation?

后端 未结 3 1335
再見小時候
再見小時候 2021-01-05 03:47

I want to retrieve the data from simulink during simulation, and use serial network function to send these data to another program. Because I need to use an

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-05 04:22

    During simulation Simulink stores logged data in an internal buffer and only writes the data to the Workspace when the simulation is paused or stopped. It sounds as if you really need to write an S-function (which will get signal values on a timestep-by-timestep basis) and communicate with Proteus that way.

    Of course Simulink is a non-realtime simulator, so if you are talking about doing anything resembling real-time control then you are most likely taking the wrong approach altogether.

提交回复
热议问题