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

23 visualizaciones (últimos 30 días)
Peter
Peter el 1 de Oct. de 2025
Respondida: Nidhi el 16 de Oct. de 2025 a las 9:47
I am having this error when full name with *.slx
or without suffix:
any fix for this?

Respuestas (1)

Nidhi
Nidhi el 16 de Oct. de 2025 a las 9:47
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!

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by