How to modify step size using my custom Simulink Block
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Benjamin Couillard
el 17 de Mzo. de 2020
Comentada: Benjamin Couillard
el 30 de Mzo. de 2020
Hi,
I have a Simulink block that sets PWM frequency. The things is that the PWM frequency must be the invert of the Simulink step size. I would like to adjust the step size of my Simulink project automatically everytime I modify the PWM frequency. The PWM frequency is set in the mask of my Simulink Block. How should I proceed?
Regards
0 comentarios
Respuestas (1)
Jesús Zambrano
el 27 de Mzo. de 2020
From what I understand, you would like to change the step size of the Solver during time. Step size, as well as other parameters such as sample time are nontunable parameter of the model. The new value will not be used in the current simulation. You need to restart the simulation if you would like to use the new value.
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!