How to log a block in simulink-model programmatically?

조회 수: 2 (최근 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 CenterFile Exchange에서 Prepare 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