How can I disable signal logging for all the signals in my model?

조회 수: 25 (최근 30일)
Peter
Peter 2025년 10월 1일 9:13
답변: Nidhi 대략 3시간 전
I am having this error when full name with *.slx
or without suffix:
any fix for this?

답변 (1개)

Nidhi
Nidhi 대략 3시간 전
Hi Peter,
I understand that you are trying to disable signal logging for all signals in your Simulink model.
I tried the suggested script and was able to reproduce the scenario. When I entered the model name without the .slx extension and made sure the model was loaded in MATLAB, I received the message.
This means the script worked as intended and successfully disabled signal logging for all signals in the model.
Before running the script, make sure to:
  • Enter the model name without the .slx extension.
  • Ensure the model is loaded in MATLAB
Alternatively, you can disable logging manually using the Simulink GUI:
  1. Open your model in Simulink.
  2. Go to the Simulation tab.
  3. Click on Prepare > Configure Logging.
  4. In the dialog that appears, select Override signals.
  5. Use Ctrl+A to select all signals, then disable DataLogging
This method is user-friendly and allows you to easily revert your settings if needed, I hope this helps!

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by