Change value of Simulink parameter inside of test harness to test two different variant subsystems

조회 수: 4 (최근 30일)
Hello,
I need help to adapt simulink parameter EST_REF_VEL_RBT_MODE_CFG in test harness, so that I can test inside test harness (different ones are also possible) the variants shown below:
I am not able to change the value of the Simulink parameter since I get error
Constant or Parameter data EST_REF_VEL_RBT_MODE_CFG on left hand side of an expression.
as shown below:
How is it possible to adapt the given parameter value inside of test harness?
Thanks in advance.
Regards,
Samir Revelo

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2019년 10월 25일
Just change the value of EST_REF_VEL_RBT_MODE_CFG. When its value is 1, ERVRBTModeHandling is activated. When the value is not 1, ERVNoRBTMode is activated. That is how Variant Subsystem works.
  댓글 수: 2
Samir Revelo
Samir Revelo 2019년 10월 29일
Thanks for your reply.
I know how Variant Subsystem works.
The real issue is that I´m not able to edit EST_REF_VEL_RBT_MODE_CFG inside of any test harness containing any assertion block as already mentioned above (I get the mentioned error message).
A method different from trying to access the value (which is a simulink parameter value) directly from the test harness is needed for the validation test of corresponding variant part to work.
Mahantesh
Mahantesh 2023년 2월 20일
@Samir Revelo Even I am facing same error, Kindly let me know if you have solved this or any alternative solutions which you might have tried.
Thanks in advance.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Embedded Coder에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by