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 件のコメント

Walter Roberson
Walter Roberson 2022 年 9 月 10 日
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) ?
Mahmoud Abdellatief
Mahmoud Abdellatief 2022 年 9 月 10 日
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

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 9 月 10 日

0 投票

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

1 件のコメント

Mahmoud Abdellatief
Mahmoud Abdellatief 2022 年 9 月 10 日
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 ?

サインインしてコメントする。

カテゴリ

質問済み:

2022 年 9 月 10 日

編集済み:

2022 年 9 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by