MATLAB: How to modify signal logging overrides in Accelerator mode without re-compiling the model

acceleratorcompileloggingoverrideselectorsignalsimulink test

I am using the Signal Logging Selector UI along with the 'DataLoggingOverride' parameter to control how signals are logged during tests.
I have a large number of referenced models, and my tests take a long time to run, so I use Accelerator mode to speed things up. I need to avoid re-compiling the model every time I change a signal logging override, because re-compiling the models takes a lot of time.
Is there a way to change the override settings without re-compiling?

Best Answer

Yes. Re-compiling is required any time you add signals to be logged, which can be avoided if you follow the recommendations below.
To modify logging without triggering a rebuild, the recommended workflow is to first enable logging for all of the signals you potentially want to log. Then you can use signal logging overrides (via the UI or the command line) to selectively turn off logging for a subset of those signals.
Building the accelerator target requires creating instrumentation for all the signals to potentially be logged. Adding new signals requires re-building to add that instrumentation; removing logged signals using the override does not require a re-build.