フィルターのクリア

How to log a block in simulink-model programmatically?

5 ビュー (過去 30 日間)
joe
joe 2019 年 9 月 5 日
回答済み: Abhisek Pradhan 2019 年 9 月 19 日
Hi everyone,
is there any way to log a block in simulink-model programmatically
this is how i log signals on and off
selectObj = find_system(gcs,'findall','on','selected','on','Type','line','parent',gcs);
sourcePortArr = get(selectObj,'SrcPortHandle');
set_param(sourcePortArr,'DataLogging','off'); % or set_param(sourcePortArr,'DataLogging','on')
MATLAB R2018b
is there any way like this ?
thank you in advance

採用された回答

Abhisek Pradhan
Abhisek Pradhan 2019 年 9 月 19 日
Simulink doesn’t support block logging. Rather one can log the signals coming out of the blocks for all required purposes.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrepare Model Inputs and Outputs についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by