Retrieving Parameter Names for custom checks in Simulink Model Advisory
Mostrar comentarios más antiguos
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?
Respuestas (1)
Kaustubha Govind
el 11 de Jul. de 2011
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.
Categorías
Más información sobre Simulink Check en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!