MATLAB: Command line interface to toggle “Logged signals as specified by model reference”

log referenced signalslogging signalsmodel reference

Hello all,
I'm using Matlab2009b and I'm trying to find out how to toggle the "Log signals as specified by the referenced model" checkbox in a model reference block by using the command line.
The option to toggle this setting becomes active when you select the referenced model by right-clicking and selecting the menu item "Log Referenced Signals…"
This is required for scripting to enable and disable the logging for certain model reference blocks within the top level model.
If this property is not accessible from the command line, is there an alternative way to enable/disable signal logging for model reference blocks?
regards,
Ron

Best Answer

set_param(Block,'DefaultDataLogging','on')
Related Question