| Contents | Index |
| On this page… |
|---|
You can log simulation data to the workspace for debugging and verification. Data logging lets you analyze how internal block variables change with time during simulation. For example, you may want to see that the pressure in a hydraulic cylinder is above some minimum value, or compare it against the pump pressure. If you log simulation data to the workspace, you can later query, plot, and analyze it without rerunning the simulation.
Simulation data logging can also replace connecting sensors and scopes to track simulation data. These blocks increase the model complexity and slow down simulation. The Data Logging Example shows how you can log and plot simulation data instead of adding sensors to your model. It also shows how you can print the complete logging tree for a model, and plot simulation results for a selected variable.
For additional information, see the reference pages for the classes simscape.logging.Node, simscape.logging.Series, and their associated methods.
Simulation data logging is not supported for:
Model reference
Generated code
Accelerator mode
Rapid Accelerator mode
![]() | Data Logging | How to Log Simulation Data | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |