Change value of Simulink parameter inside of test harness to test two different variant subsystems
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/244996/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/244997/image.png)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/244998/image.png)
How is it possible to adapt the given parameter value inside of test harness?
Thanks in advance.
Regards,
Samir Revelo
0 Kommentare
Antworten (1)
Fangjun Jiang
am 25 Okt. 2019
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 Kommentare
Mahantesh
am 20 Feb. 2023
@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.
Siehe auch
Kategorien
Mehr zu Embedded Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!