Data is not visible by simulink plot block

4 visualizaciones (últimos 30 días)
Ismaeel
Ismaeel el 30 de Abr. de 2015
Editada: Sebastian Castro el 30 de Abr. de 2015
Hi...
When I attempt to see my plot in Simulink, it only shows me a specific x-range different than what I had chosen in advance. For instance, I chose "simulation stop time" =1000 but when I see the result from the scope block I can see only the range (980-1000). Why this happens? and how can I fix it?
Thanks in advance

Respuestas (1)

Sebastian Castro
Sebastian Castro el 30 de Abr. de 2015
Editada: Sebastian Castro el 30 de Abr. de 2015
By default, Scope blocks retain only the last 5000 data points to save on memory. If you want all the data to show up:
  1. Open up the scope
  2. Click the gear button (Preferences/Options)
  3. Go to the "History" tab and uncheck the "Limit data points to last" box
  4. Run the simulation again to collect the data''
EDIT: If it's not that, there is also a "Time range" option in the first tab of the Scope block preferences. Sometimes this gets changed to values smaller than your total simulation time, so look out for that too.
- Sebastian

Categorías

Más información sobre View and Analyze Simulation Results en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by