tunable parameters in simscape
Mostrar comentarios más antiguos
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!
Respuestas (1)
Michelle Wu
el 13 de Mzo. de 2017
0 votos
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.
5 comentarios
Alicia Roder
el 13 de Mzo. de 2017
Michelle Wu
el 13 de Mzo. de 2017
Unfortunately, you cannot change the value of a run-time configurable parameter during simulation. You can only change the value of a run-time configurable parameter when a simulation is stopped.
On the other hand, the value of a Simulink tunable parameter can be changed while a simulation is running. Because the Hydraulic Pressure Source can also take a signal from Simulink, it may be possible for you to use Simulink tunable parameter to suit your need depending on what kind of source you are looking for and what parameters you want to be tunable. Some parameters (like sample time and priority) are not tunable.
For example, if you would like a constant source for the Hydraulic Pressure Source, instead of using the "PS Constant" block from the Simscape Foundation Library, you may use a Simulink "Constant" block together with a "Simulink-PS Converter" block. Now you should be able to make this Simulink "Constant" block tunable for your application. Please refer to the following doc page for more information:
Alicia Roder
el 16 de Mzo. de 2017
Alicia Roder
el 30 de Mzo. de 2017
Giovanni
el 9 de Ag. de 2018
do not use memory block into loops! use dynamic blocks instead modeling, for example, the dynamics of a measure
Categorías
Más información sobre Sources en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!