How I can define a varying parameter in Simulink Test?
이전 댓글 표시
Hi,
I am designing a Test Harness for my model. I have a parameter in the simulink model(a gain) and I want to develop a test sequence to test the sensitivity of my model with respect to this parameter. simply, I want to design a DOE for my model. I defined the parameter in the test sequence and I define that in the Model Explorer, too. But, I received the below error. Could you please guide me that how I can define a parameter that I can change in each test by Test Sequence Editor block?
Thanks for your consideration and time.
regards, --------- "Constant or Parameter data 'AAA' on left hand side of an expression.
State 'step_2' "AAA" ----------
채택된 답변
추가 답변 (1개)
Chandrasekhar
2016년 2월 15일
i guess you want to change the gain value while the simulink model is running. you can do that by giving the below command in your test sequence
set_param(<gain block name>,'Gain',<value>)
댓글 수: 3
Ayyoub
2016년 2월 25일
Chandrasekhar
2016년 3월 2일
Could you please let me know the context how you want to change the gain value.
카테고리
도움말 센터 및 File Exchange에서 Inputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

