Effacer les filtres
Effacer les filtres

Tell what type of line is selected in Simulink

5 vues (au cours des 30 derniers jours)
Duke
Duke le 29 Août 2013
Is there any way that I can tell what a line is from the coommand line. I would like to see if a line is a bus or just a normal line without looking at the model.

Réponse acceptée

Kaustubha Govind
Kaustubha Govind le 29 Août 2013
There is a parameter called SignalHierarchy which gives information about bus signals, but it is available on port handles, not line handles. You can try something like the following to obtain the information via a line handle:
>> get_param(get_param(lineHandle, 'SrcPortHandle'), 'SignalHierarchy')
The BusObject and Children fields should be non-empty for buses.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by