The result of AC current output is abnormal in electric circuit simulation using Simulink
조회 수: 6 (최근 30일)
이전 댓글 표시
I simulated a simple AC circuit containg an AC Voltage Source and a Resistor from Simsacpe library, and using a Current Sensor and a Scope to show the current. The circuit model is as follows:

When I set the Stop Time to be 5 seconds, the result shown in Scope is right which is shown below:

However, when I set the Stop Time to be 10 seconds, the result shown in Scope is abnormal which is shown as follows:

How to solve this problem? Thanks very much!
채택된 답변
Sabin
2023년 1월 26일
This appears to be related to how the solver computes the step size. By explicitly setting the ‘Max step size’ in the Configuration Parameters (for example 0.1) would fix the issue.

추가 답변 (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!










