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?

Answers (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.

Categories

Products

Asked:

on 11 Jul 2011

Community Treasure Hunt

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

Start Hunting!