How to list all blocks that "InitialOutput" parameter is accessible in their "block parameter" interface?

1 Ansicht (letzte 30 Tage)
Hi,
In function of their use, some blocks need or not to have parameter fields fill. For example, "Outport" blocks, according to their use, have the parameter "Initial output" available or not in their Block Parameter interface :
Using Simulink API, I would likle to list all blocks that have "Initial output" needed (I mean accessible in their block parameter inteface), how can I do it?
Thanks!

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 5 Okt. 2022
If you look at the help document of the Outport block, it says the "Initial Output" property is valid when the Outport block is inside a "Conditionally Executed Subsystems (wihch include Enabled Subsystem, Triggered Subsystem, Enabled and Triggered Subsystem, Function-Call subsystem)
Also, the property is valid only when "Source of initial output value" is set to "Dialog".
Based on the above two constraints, I think you can use find_system() to find the blocks.

Weitere Antworten (0)

Kategorien

Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by