MATLAB Answers

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

2 views (last 30 days)
tangzhong song
tangzhong song on 19 Dec 2020
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?

Answers (1)

Swaroop Gopa Srinivas
Swaroop Gopa Srinivas on 24 Feb 2021
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.

Community Treasure Hunt

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

Start Hunting!