필터 지우기
필터 지우기

Does SimScape blocks like Double-Acting Actuator (IL) support tunable parameters for initial conditions?

조회 수: 3 (최근 30일)
I have created a Simulink project with a subsystem containing a Double-Acting Actuator. The subsystem is set up with a mask where a parameter is added to the dialog, and the 'Tunable' attribute is set to 'on'. The parameter used on the mask is defined as a workspace variable.
Searching the generated c/c++ (non-reusable) code, there is no references found to the parameter used e.g. for initial piston position, but the value (0.54321) of the parameter is found several places, indicating that the parameter has been inlined (hardcoded) and not possible to change after compilation.
Parameters used outside of SimScape, with simulink blocks, like a rate-limiter, is visible in the code used as a variable - which means it is tunable (during initialization or runtime).
Is this what one can expect? Reading this makes me think it should be possible to use tunable parameters with simscape blocks: https://se.mathworks.com/help/simscape/ug/how-simscape-run-time-parameters-differs-from-simulink.html
Thanks

채택된 답변

Stian
Stian 2023년 5월 5일
Found out that the option to set a parameter as run-time configurable, as described in the below link, only becomes visible after you select that option in the Matlab Preferences->Simscape menu:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simscape Fluids에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by