How to save data to workspace when simulink is running in external mode?

4 ビュー (過去 30 日間)
tangzhong song
tangzhong song 2020 年 12 月 19 日
回答済み: Swaroop Gopa Srinivas 2021 年 2 月 24 日
I connect matlab with a ros device, then run simulink in external mode, it can work well. But there is a little problem, the data cannot be saved into matlab workspace, and it appears the following warning. How should I do to save data to matlab workspace or .mat file?

回答 (1 件)

Swaroop Gopa Srinivas
Swaroop Gopa Srinivas 2021 年 2 月 24 日
I understand that, simulation result need to be stored when model is run in external mode.
Try using To Workspace block to store the output.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by