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

5 views (last 30 days)
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.

Categories

Find more on Publishers and Subscribers in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!