How can I change a tunable parameter with a Matlab function when using Simulink Coder?
조회 수: 7 (최근 30일)
이전 댓글 표시
We have a Simulink model that is compiled and run on a dSPACE box. We need to be able to
- change the value of a parameter with dSPACE ControlDesk and
- change the value of a parameter with a Matlab function inside the model
1. is possible with a Constant block, just by entering a number. You can change the value of the Constant block in dSPACE. It is also possible to enter a variable name like FOO in the Constant block and change that value FOO as a tunable parameter. 2. has not been possible so far. Things like 'set_param' do not seem to work, because everything is compiled with Simulink Coder.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190726/image.png)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!