Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

simulink

Status
Not open for further replies.

derick007

Electrical
Nov 25, 2015
1
The attached simulink file is a very simple model of a signal source with a scope and spectrum analyser attached.

The signal source produces a constant value of 1 over the entire simulation time. The spectrum analyser has been setup with a HANN window.

From the spectrum analyser you can see the value at zero hertz is 30 dBm. With Hann windowing I was expecting the value to be about 6 dBM less than this ?

For simple signal analysis such as this I find simulink incredible difficult. Any suggestions for easier to use signal processing software would be more than welcome.

Regards, derick007
 
 http://files.engineering.com/getfile.aspx?folder=69d3b493-b12d-41b3-ae1a-b42d4081c169&file=HANN.slx
Replies continue below

Recommended for you

You definitely have something odd. 1 what? 1 Vrms? 1 Vrms^2/50 = 20 mW -> 13 dBm, not 30 dBm. I expect 17 dB less with a rectangular window.

Why don't you try putting a few frequency sources in your window? That way you can see if your window shape is behaving as you expect.

Z
 
Check the area of the Hann window. A DC output signal will be scaled by the area of the window divided by the number of samples.

 
The value for 0Hz is 30dBm = 0dBW = 1W for a Hann (and for most other) window, because you are inputting a constant 1 signal.

If you want to input a pulse, you should adjust the parameters Pulse Generator>Pulse Width and Pulse Generator>Phase properly.

Hann_1_qtagdd.png

Hann_2_qygyqx.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor