How is it possible to deactivate signal logging of referenced models in the InitFcn callback?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 16 Sep. 2019
Beantwortet: MathWorks Support Team
am 16 Sep. 2019
How is it possible to deactivate signal logging of referenced models in the InitFcn callback?
While doing this with
>> set_param(bdroot, 'InstrumentedSignals', [])
in InitFcn callback in the model callbacks, I see the following error:
Error evaluating 'InitFcn' callback of block_diagram 'modelName'.
Callback string is 'set_param('bdroot', 'InstrumentedSignals', []) '
Caused by:
It is incorrect to modify the model 'modelName' from the InitFcn callback of a different model.
Akzeptierte Antwort
MathWorks Support Team
am 16 Sep. 2019
Doing it like in the described way is indeed not possible, but it sounds like the Signal Logging Override feature is exactly what you are looking for:
This feature allows the user to override the signal logging for the entire model hierarchy without the need for modifying referenced models. Using the override you log a subset of the signals selected to log in each model or none of them. There is both a programmatic and graphical approach for this, which can both be found from the documentation above.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Model, Block, and Port Callbacks finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!