Command line interface to toggle "Logged signals as specified by model reference"

1 view (last 30 days)
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

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 28 Sep 2011
set_param(Block,'DefaultDataLogging','on')

More Answers (0)

Categories

Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!