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
2011년 7월 11일
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 Exchange에서 Simulink Check에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!