- Open the model in Simulink.
- Open the Stateflow Chart from the model and now open the Symbols Pane from the Simulation tab in Prepare Section.
- Similarly Open the Property Inspector from the Simulation Tab in Prepare Section.
- Now select the data or signal whose Logging is be removed from the Symbols Pane.
- Now In the Property Inspector, under Logging, uncheck the log signal data check box to disable the logging.
- Now save the model by pressing ctrl + S or using the save button present in the Simulation Tab under File section.
How can I Disable Log signal data of a local and output signals of a state machine in model explorer in Matlab 2019b
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a state machine in my core model which has local and output signals Log signal data enabled. I want to disable that option and need to save the model. I have used the below code but still I was not able to save the changes to the model.
mdl = 'Modelname';
mi = Simulink.SimulationData.ModelLoggingInfo.createFromModel('mdl');
for i = 1:numel(mi.Signals)
mi.Signals(i).LoggingInfo.DataLogging = 0;
end
set_param(mdl, 'DataLoggingOverride', mi);
댓글 수: 0
답변 (1개)
Ashutosh
2023년 8월 16일
You can follow the steps below to disable log signal data option as follows:
You can follow the link below to know more about logging of signal data
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Save Run-Time Data from Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!