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:
- Open your model in Simulink.
- Go to the Simulation tab.
- Click on Prepare > Configure Logging.
- In the dialog that appears, select Override signals.
- 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!