Effacer les filtres
Effacer les filtres

How to set Simulink menu bar tools by m Scripts

1 vue (au cours des 30 derniers jours)
Xiaoning.Wang
Xiaoning.Wang le 20 Nov 2020
Modifié(e) : Xiaoning.Wang le 23 Nov 2020
hello supporter,
how to set Simulink menu bar tools by m Scripts, but I how to which API function .
I want to set some menu bar tools by m Scripts, other people also can use my m script set the Simulink menu .
eg:
Now, I should use which API function get this paraments preferences and how to set it by m scripts
  1 commentaire
Xiaoning.Wang
Xiaoning.Wang le 23 Nov 2020
Modifié(e) : Xiaoning.Wang le 23 Nov 2020
use API: get_param('Template','ObjectParameters') can get many Simulink API
Note: Temolate is my .slx document
eg:
SampleTimeColors: [1×1 struct] // Dispaly->Sample Time
LibraryLinkDisplay: [1×1 struct] //Dispaly->Library Link->Disable
ShowPortDataTypes: [1×1 struct] //Dispaly->Signals & Ports->PortDataTypes
PortDataTypeDisplayFormat: [1×1 struct] //Dispaly->Signals & Ports->PortDataTypes DisplayFormat
ShowPortUnits: [1×1 struct] //Dispaly->Signals & Ports->Port uint
All set in menu boor don't sure must have API function(带单栏上所有的设置不一定,全部包含API函数,因为只能找到部分)
Simulink->Preferences->Edit I don't found it API function
Simulink->Preferences->Gneral I found it API function
Simulink->Preferences->Model File I found it API function

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Environment Customization 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