필터 지우기
필터 지우기

SINEWAVE IN SCOPE (simscape)

조회 수: 2 (최근 30일)
Andreas
Andreas 2012년 4월 3일
Hello, I connected an ac voltage source to a voltage sensor and then trough a ps-to-simulink converter to a scope, in order to see the voltage graph. I use an ode23t solver and the only thing I get is a straight line on the x axis (with value ewual to 0). No sinewave looking voltage/ I set simulation time to 0.1. Why is this happening? Do I need to use different blocks? SCOPE is not appropriate for simscape and physical signals?
Thanks

채택된 답변

Doug Eastman
Doug Eastman 2012년 4월 3일
To see the sinusoidal voltage variation you need to reduce the step size of the simulation. Go to Simulation -> Configuration Parameters and change the Max step size parameter to be smaller than 1/(2*frequency). For example if the AC frequency is 60 Hz, set the parameter to be 1/120 or 1/240.
  댓글 수: 1
K E
K E 2012년 4월 3일
This blog entry may be helpful, http://blogs.mathworks.com/seth/2009/07/14/refining-the-output-of-a-simulation/

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Andreas
Andreas 2012년 4월 9일
I actually used a really low step like 1e-5 and it workd ok, since the sampling freq increased. I believe that refining is something like interpollating, so it justs recalculates intermediate steps (those that have not been actually sampled).
Any way thank you.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by