How to handle BusCreator programatically

5 visualizaciones (últimos 30 días)
Matthias
Matthias el 24 de Jul. de 2019
Comentada: Shiv Nileshkumar Matliwala el 25 de Nov. de 2022
Hello!
I have quite a simple question: the BusCreator has a block parameter "Require input signal names to match signals above". How can I access this setting via get_param?
Thanks a lot!
  1 comentario
Shiv Nileshkumar Matliwala
Shiv Nileshkumar Matliwala el 25 de Nov. de 2022
Hello Matthias,
Can you tell me how can see the input ports and output ports of the bus creator block ??
using find_system() it should be work like
inports_bc = find_system(bus_creator,'BlockType','Input')
So, is it correct or any other way to extract this information ?

Iniciar sesión para comentar.

Respuestas (1)

Archit Dhanani
Archit Dhanani el 26 de Jul. de 2019
Unfortunately, there is no get_param API for this parameter.
(As of R2019a ) the documentation says Note: The Require input signal names to match signals above parameter might be removed in a future release. To enforce strong data typing, consider using the Override bus signal names from inputs parameter.
  1 comentario
Matthias
Matthias el 29 de Jul. de 2019
Thank you!
I know this setting; but unfortunatelly it seems that this setting does not influence the setting above :-(.
In my case I have a BusCreator with the setting "Require..." set to on with some signals on this block. When I change the signal names on the incoming lines the BusCreator does not recognize the new names even if I switch on "Override bus signal..."...?

Iniciar sesión para comentar.

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by