Effacer les filtres
Effacer les filtres

How to get the available annotation list of a Simulink block from command line

12 vues (au cours des 30 derniers jours)
Andrea Congestri
Andrea Congestri le 13 Sep 2019
I'd like to get the list of available annotation for a specific block from script in order to then programmatically set them with the function:
set_param(gcb,'AttributesFormatString','MyAnnotation = %<MyToken>');
I'm already able to get the parameters of the block with
blockParam = get_param(gcb,'ObjectParameters');
Unfortunately the resulting list includes more properties than what I'm looking for.
To be specific, I'd like to get the exact same list of properties shown in the Block Annotation tab, under the Block Properties window (right click on block, Properties...):
I'm pretty sure is a matter on knowing the specific object property field to look for (obj= get_param(gcb,'Object');).
Thanks,
Andrea

Réponses (1)

Archit Dhanani
Archit Dhanani le 16 Sep 2019
  1 commentaire
Andrea Congestri
Andrea Congestri le 18 Sep 2019
Thank you Archit, I'm already awware of that page. Unfortunately it doesn't show the available annotation list for eack block type. It is just a list of common block parameters.
The annotation list is bespoke for eack block type, for example the annotation %<BreakpointsForDimensionXX> belongs only to Lookup Table blocks.

Connectez-vous pour commenter.

Catégories

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

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by