Spectral analysis of spectrum analyzer

Using measures from a spectral analyzer, I am a bit confused on how to properly compare the power of each spectral line with the fourier coefficients (Parseval).

Take this signal:

Take its spectrum:

My experience with spectrum analyzers being limited, I attempt to compare what I expect with what I read.

The Fourier series coefficients of the ramp signal are: $$D_n = \frac{-jA_{pk}(-1)^n}{\pi n}$$

So I expect a single spectral line on the spectrum analyzer to have power: $$P_n = 2 \cdot |D_n|^2$$ Where the factor 2 is due to the signal being real (taking into account both contributions at -f and f).

And so, for the first spectral line (at n = 1), I'd expect to have: $$P_n = 2 \cdot \left( \frac{0.1 \cdot (-1)}{\pi} \right)^2 \approx 2.02642 \cdot 10^{-3} W$$

Now, converting the spectrum analyzer's dBm to watts: $$P_{experimental} = 10^{(P_{dBm} - 30)/10} = 10^{((-13.85) - 30)/10} = \approx 4.12098 \cdot 10^{-5} W$$

It seems I have a somewhat huge error on this measure. However, it seems the spectrum measures are not entirely uncorrelated with the Fourier series powers, in the sense that the factors between the measures and the actual powers calculated using Fourier series seem constant. It seems to be a simple scaling error.

Maybe I miss something, and I wondered if anybody would maybe see something on the instruments captures I don't see.

• P=U*I, you have just U, what power are talking about? Oct 7, 2018 at 21:05
• The spectral power? On the spectrum analyzer? The PSD? Oct 7, 2018 at 21:11
• In your equations, I am missing a transformation of spectral power [dB] to electrical power [W] Oct 7, 2018 at 21:15
• Yes the impedance of both the signal generator and the spectrum analyzer are 50 Ohm. No external attenuator was used. For the DC block, I don't know much about it, I don't doubt its quality though, in order words for the frequencies I was using it with, there shouldn't be any issues. I think it's something trivial like a setting on the spectral analyzer of something... (who knows). Or a calculation error? Anyway, I understand it's hard to guess, just wondering if the calculations are even correct in the first place, assuming the measures are correct. Oct 7, 2018 at 21:29
• I converted from dBm simply using these equations : rapidtables.com/convert/power/dBm_to_Watt.html Oct 7, 2018 at 21:30