- Add a rate transition between the PS-Simulink converter and the Spectrum Analyzer block.
- Change the solver type to "Fixed-type" under Model Settings>Solver.
- Change the Sample rate of the spectrum analyzer to a value greater than or equal to twice the voltage source frequency.
Simulating a simscape circuit
조회 수: 4 (최근 30일)
이전 댓글 표시
when I try to simulate a circuit that I created in simscape I get an error message that says Spectrum cannot be displayed for continuous or infinite sample times, Please help. I have included a screen shot of my circuit.
댓글 수: 0
답변 (1개)
Pratyush Roy
2021년 5월 11일
Hi Paul,
The model fails to simulate because the other circuit components operate under discrete rate while the spectrum analyzer operates under a continuous rate. You can make the following changes to your model:
The figure below illustrates the changes made to the Simulink model:
You can also refer to the attached Simulink model(.slx file) with the suggested changes.
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Circuits and Systems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!