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

16 vues (au cours des 30 derniers jours)
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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Prepare Model Inputs and Outputs dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by