Time range of scope: Truncated data with SLRT

1 Ansicht (letzte 30 Tage)
Marius
Marius am 12 Okt. 2015
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

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by