Way to disable Simulink blocks at compile time using a variable in the workspace
조회 수: 9 (최근 30일)
이전 댓글 표시
Hello,
I have three 2-level 3-phase inverters, each built with different switch blocks: the "Switch" block, the "IGBT (Ideal, Switching)" block, and the "N-Channel IGBT" block. This is done so as part of a larger e-drivetrain model, and so I would like a user to be able to change which inverter model to use based on the accuracy-speed tradeoffs of each one; ex for thermal modeling a user would probably use the "N-Channel IGBT" inverter but for motor controls a user could use the "Switch" inverter. I would like this to be able to be determined by a variable in the Simulink workspace, or something similar, but I couldn't find a good way to do this in Simulink.
댓글 수: 0
답변 (1개)
Fangjun Jiang
2023년 9월 15일
편집: Fangjun Jiang
2023년 9월 15일
This is the exact use case for Variant Subsystems.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Switches and Breakers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!