Time range of scope: Truncated data with SLRT
1 次查看(过去 30 天)
显示 更早的评论
Hi there,
I'm recording some data from a model running on an external target (SLRT) with a Simulink scope, checked the option "Save data to workspace". According to the help on the scope block ("For simulations with the Stop time set to inf, always select the Limit data points to last check box and enter a value.") I either chose a fixed end time (t_end in the attached Constants_init file) or when setting t_end = 'inf' I checked "Limit data points to last:" in the scope parameters.
However, still the data gets truncated to the last about 1000 samples. Sometimes also I get a warning in the Command Window, which is
a) a bit cryptic (why overridden, with what...) and
b) not appearing systematically:
Warning: Time range of 'AIETB_turn_motor_read/Scope' is currently being overridden by a
global setting.
> In warning at 28
In scpprop>i_GeneralPropValPairs at 2785
In scpprop>i_ApplyParams at 2655
In scpprop>i_ManageSystemButtons at 2607
In scpprop at 128
I also checked the data size. A current struct, truncated to 930 data points measures 32 kB, so even a 300k data point recording should amount to max. 10 MB, far below the 2 GB RAM of my external target.
I attached the model and a script initializing some constants for the model.
My questions:
- Can anyone explain me why my data gets truncated?
- Is there something I can change in my model not to get the scope data truncated?
- Do you have a more robust (and simple!) suggestion to display my data and save it to the Workspace?
Thanks a lot, Marius
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!