simlog
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Tired of adding "To Workspace" or Display blocks when debugging your models?
In this case, SIMLOG is for you. Select which signals to log, either individually or complete subsystems. After execution of the model, signals can quickly be inspected by selecting the signal in the model and click the plot button.
Enable/disable logging of signals in the current subsystem + plot logged
signals.
1. Select signals, 1 or more, in model. (If subsystems or blocks are
selected, they will not be logged, use subsystem logging instead).
2. Click the desired button among the signal buttons (add/remove/plot)
Enable/disable logging for entire subsystems
1. Select 1 or more subsystem
2. Click the desired button among the subsystem buttons (add/remove)
A number of checkboxes allows for inclusion/exclusion of certain block
types.
After execution of the Simulink model the logged data can be plotted by
selecting a logged signal in the model and clicking the plot button.
Data can also be exported to a variable in the WS for analysis with the
export button.
tstool starts the simulink built-in Time Series Tools for analysing the
logged data.
Very quickly tested in Matlab 2011a prerelease to verify functionality.
Cite As
Robin Larsson Nordström (2024). simlog (https://www.mathworks.com/matlabcentral/fileexchange/30019-simlog), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.