How to modify step size using my custom Simulink Block
조회 수: 4 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Jesús Zambrano
2020년 3월 27일
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!