Retrieving Parameter Names for custom checks in Simulink Model Advisory

I have to create a custom check for the Simulink Model Advisory. As a part of that check, it must look at the Output Port sampling time and make sure it is set to inherit. In my custom check that I am writing I am using the get_param command, but one of the required argument is the name of the parameter. How do I find what the name of the parameter is for the Rate Transition block output sampling time?

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2011 年 7 月 11 日

1 投票

Select a Rate Transition block and run the following in the command window:
get_param(gcb, 'DialogParameters')
ans =
Integrity: [1x1 struct]
Deterministic: [1x1 struct]
X0: [1x1 struct]
OutPortSampleTimeOpt: [1x1 struct]
OutPortSampleTimeMultiple: [1x1 struct]
OutPortSampleTime: [1x1 struct]
As you can guess, OutPortSampleTime is the name of the desired parameter.

カテゴリ

ヘルプ センター および File ExchangeSimulink Check についてさらに検索

製品

質問済み:

2011 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by