simlog
Anmerkung des Herausgebers: 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.
Zitieren als
Robin Larsson Nordström (2024). simlog (https://www.mathworks.com/matlabcentral/fileexchange/30019-simlog), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
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 |