simlog

GUI to enable easy logging of multiple signals in Simulink. Log a complete subsystem with one click.
1.3K Downloads
Updated 7 Feb 2011

View License

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
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Prepare Model Inputs and Outputs in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.0.0

Fixed error when trying to export signals with no logged data

1.2.0.0

Include note on Merge blocks in .m file

1.0.0.0