필터 지우기
필터 지우기

adding Sin into simulation

조회 수: 1 (최근 30일)
Henry Buck
Henry Buck 2015년 9월 17일
댓글: Henry Buck 2015년 9월 28일
Hi,
I have voltage output signal(DC) and I want to add a sinwave into it. for exmple: If V_out=200v I want to change it in format: V_out*sin(Omega*t+phi), which Omega= 100*pi and phi=0.
How to addV_out if it changeevery monent ?
How to add sine block with that parameters ?
Thanks, Henry

채택된 답변

Sebastian Castro
Sebastian Castro 2015년 9월 18일
Indeed, the Sine Wave block assumes constant amplitude, phase, and frequency. In your case, you want the amplitude to vary which means you should use fundamental blocks as follows:
  1. First, you want to generate the time signal "t". To do this, you can use a Clock block, which outputs the simulation time.
  2. Next, you can multiply that signal by frequency "Omega" and add phase "phi" to it.
  3. Then, input that signal into a Trigonometric Function block configured with the sin function.
  4. Finally, take that whole output and multiply it by your amplitude signal "V_out".
- Sebastian
  댓글 수: 2
Henry Buck
Henry Buck 2015년 9월 19일
Thank You, Henry
Henry Buck
Henry Buck 2015년 9월 28일
Hi, I built a simple DC to AC inverter. The output of that inverter is about 11 levels voltage. Adding an Low Pass filter to it, smooth the shape of the output signal an it becomes more likely as a sinusoidal.
My question is: How to synchronize that signal with the grid signal ? - for example Fgrid = 50 Hz or 60 Hz.
I understand than I need to do V_out*sin(W*t + Phi) which is: V_out = 11 level voltages. W*t = frequency grid, letsay 100*PI. Phi = 0, 120, 240 - for tree phase.
Thanks for help, Henry

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by