Clear Filters
Clear Filters

tunable parameters in simscape

4 views (last 30 days)
Alicia Roder
Alicia Roder on 10 Mar 2017
Commented: Giovanni on 9 Aug 2018
Is there any possiblity to implement a tunable parameter within the simscape environment? I would need a tunable parameter such as seen in the simulink environments for a hydraulic pressure source. Thank you!

Answers (1)

Michelle Wu
Michelle Wu on 13 Mar 2017
From your descriptions, it looks like Simscape run-time parameters might be something you are looking for. Simscape run-time parameters are coded as variables with values that you can change before or between simulations without recompiling the model. Please refer to the following link to learn more about what they are and how to use them:
Please note that the above doc page is for the latest release R2017a. Depending on the release you currently use, the level of availability of such feature may also vary.
Alicia Roder
Alicia Roder on 30 Mar 2017
Solved the problem by adding a memory block within the loop and replacing the constant pressure source with a fixed displacement pump. The fixed displacement pump can react on PS converted signals given out by stateflow. The Memory block adds an delay which makes it possible to solve the loop equations.
Giovanni on 9 Aug 2018
do not use memory block into loops! use dynamic blocks instead modeling, for example, the dynamics of a measure

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!