Log some resolved signals

I have a model with bunch of resolved signals, I need to run the model several times and each time I need to log some signals and save them as dataset, so how I can programmatically log some signals using signals names ?

2 Comments

When you say "model" do you mean a Simulink model? A Simscape model?
Has the model been configured for single output (as is recommended these days) ?
Simulink model, I don't know what do you mean about single output, but the model is a subsystem that contains some sub-subsystems, I need to run it as a black box but taking into consideration some signals that are not the output of that model,they are abstracted signals between these sub-subsystems

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 10 Sep 2022
https://www.mathworks.com/help/simulink/ug/accessing-signal-logging-data.html shows how to access the logging data after simulating a model.

1 Comment

Thank you for help, is there another way to programmatically logging the data using resolved signals names instead of using block name and port index ?

Sign in to comment.

Asked:

on 10 Sep 2022

Edited:

on 10 Sep 2022

Community Treasure Hunt

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

Start Hunting!