Truncated "to workspace" data from Simulink model during external mode: only the latest data are correctly saved.
Show older comments
Hi everyone, I'm experiencing an annoying issue when saving data from running a Simulink model in external mode. If a "to workspace" block is inserted into the model and regardless the type of data required (time series/array/structure), only a small random number between 100 and 1000 of the entire data are effectively stored in the workspace variable, corresponding to the very little end of those actually generated by the model. Data points are set to infinite in the block dialog so I can not figure out why this truncation takes place, and why the data length appears so unpredictable. For the sake of clarity, I'm working with Ubuntu 14.04 running Matlab R2014b and Simulink is used in external mode with a fixed sample time. Many thanks to all those will help me.
Accepted Answer
More Answers (2)
minkow38
on 6 Sep 2017
0 votes
Hi Alberto,
I've faced issue in terms of logging data, I only had at best the last 1000samples that were saved to my workspace after running my simulink model in external mode.
I've found a solution in mathworks documentation:
If you change the "Duration" parameter in "External & triggering Signals" window that should help you.
Giorgio Concu
on 6 Dec 2017
0 votes
I had the same proble withe R2015b and I fix it just upgrading to 2016b or higher.
Categories
Find more on Simulink Supported Hardware 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!