How to list all blocks that "InitialOutput" parameter is accessible in their "block parameter" interface?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
langrg
el 4 de Oct. de 2022
Comentada: langrg
el 10 de Oct. de 2022
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 :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1144965/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1144970/image.png)
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!
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 5 de Oct. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Subsystems en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!