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 ?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Data Logging에 대해 자세히 알아보기

질문:

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