Simscape current source at higher frequency
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello!
I am trying to simulate modulated light incident on a photodetector. I am modeling the photodetector's output electrically using a current source. I am having a lot of trouble getting the current source to work at the current and frequency levels I would like (90uA dc offset, 72uA ac amplitude, ~40kHz). When I use the Scope to look at the current, I just see a flat line @ 40kHz. When I run the current source at 10Hz I see a beautiful sine wave. Does the Scope not sample quick enough to be able to plot a 40kHz signal?
This is my first time using Simscape to build anything so I don't know if I'm making a newbie mistake.
Any advice is appreciated. Thank you!
댓글 수: 0
답변 (1개)
Manoj Mirge
2023년 8월 17일
The “solver configuration” block in the model has the sample time as 0.001 sec. So, the “scope” block will observe the value of current at the interval of 0.001 seconds I.e., the frequency of the “scope” block is 1000 Hz. The “scope” block will be accurate if the frequency of “scope” block is more than frequency of “current source” block.
To get the accurate results for the 40 KHz frequncy of current source kindly set the frequency of “scope” block more than 40 KHz. This can be done by setting the “Sample time” block parameter of the “solver configuration” block as lower than 0.000025 seconds.
Hope this helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Electrical Sensors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!