Visualize states in model
Use the State Explorer to view individual state dynamics of your model
Open the States Explorer
Profile the model using the Solver Profiler. Ensure that the Continuous States parameter is enabled.
Select States in the Explore section of the Solver Profiler toolstrip.
Interactively explore states
This example shows how to use States Explorer to explore Newton Exceptions.
To begin, open the
ex_spi_show_zc model, click
Debug, open the drop down menu of Performance
Advisor, select Solver Profiler.
Enable the Continuous States parameter in the Configure section of the toolstrip and run Solver Profiler.
When profiling has completed, launch State Explorer. Select Newton/DAE Exception in the Filter section of the State Explorer toolstrip.
There is an increase in the density of Newton exceptions through the simulation. Zoom in on the State plot between the 5 and 6 second mark.
A closer examination reveals that each bounce causes two Newton iterations to switch from positive to negative corresponding to two zero crossing events. For more details, see Interactively Explore Zero Crossings. Around 5.48 seconds, the bouncing ball being simulated in the model comes to ‘rest’, hence the isolated single Newton iteration exception.