Why does Simulink model data plot/recording to workspace variable and scope dispay reset after 1000 data entry points?
Afficher commentaires plus anciens
Hi, model is using external DAC for data input into model. All works fine but no matter what sample time I set the ToWorkspace workspace variable only records that last 1000 data entries. These same points are displayed on the model Scope. I've tried changing Model simulation parameters (unchecking Limit data points to last), using different Format (Array, Timeseries etc), simulation run time set to inf. All to no avail. Tried Scope setting to scroll, which makes the display scroll after a while but when save scope data to workspace also set, the named variable only stores the last 1000 points. Any ideas?? Seem to have exhausted all avenues.
Réponses (2)
Swarooph
le 1 Août 2017
0 votes
Couple of things to try.
Scope has a limit data points to last option. Uncheck this in the Scope configurations.

To Workspace also has a similar option. Double click on the block and ensure it is set to Inf.

The model level parameter called LimitDataPoints is used only when you are logging from the Data Import/Export pane. I believe the local settings of these blocks take precedence in that case.
1 commentaire
Sean
le 2 Août 2017
I think you can try to follow these steps:
The limitating length of 1000 samples is set on "external & signal triggering" window, where you can choose the Duration of a selected signal.
Catégories
En savoir plus sur Sources dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!