How to log a block in simulink-model programmatically?

2 Ansichten (letzte 30 Tage)
joe
joe am 5 Sep. 2019
Beantwortet: Abhisek Pradhan am 19 Sep. 2019
Hi everyone,
is there any way to log a block in simulink-model programmatically
this is how i log signals on and off
selectObj = find_system(gcs,'findall','on','selected','on','Type','line','parent',gcs);
sourcePortArr = get(selectObj,'SrcPortHandle');
set_param(sourcePortArr,'DataLogging','off'); % or set_param(sourcePortArr,'DataLogging','on')
MATLAB R2018b
is there any way like this ?
thank you in advance

Akzeptierte Antwort

Abhisek Pradhan
Abhisek Pradhan am 19 Sep. 2019
Simulink doesn’t support block logging. Rather one can log the signals coming out of the blocks for all required purposes.

Weitere Antworten (0)

Kategorien

Mehr zu Prepare Model Inputs and Outputs 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!

Translated by