Finding Simulink block by sample time

4 Ansichten (letzte 30 Tage)
Benjamin
Benjamin am 28 Sep. 2015
Beantwortet: goerk am 28 Sep. 2015
I would like to search a block in Simulink by sample time. Meaning, some signals having INF as sample time, and I would like to change them, but I need to find them in the model first.

Akzeptierte Antwort

goerk
goerk am 28 Sep. 2015
try this:
find_system(gcs, 'FindAll', 'on', 'SampleTime', 'inf')
where gcs means get current system and could also be replaced with the model name.

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by