Problem when trying to use the Spectrum Analyzer in Simulink.

조회 수: 129 (최근 30일)
Cesar Herbas Zeballos
Cesar Herbas Zeballos 2018년 9월 4일
답변: nada khatib 2023년 5월 12일
Greetings ... I am new to the community as well as simulink. The problem I have is that I can not use the Spectrum Analyzer in Matlab R2015a, and whenever I try to open the block only a minimized white window appears, as shown in the attached image and where I can read.
  • Spectrum can not be displayed for continuous or infinite sample times.*
Someone knows if I need to configure any parameter of the analyzer, since I can not observe anything when I connect a sinusoidal signal directly. I leave attached an image of the simulation in simulink.

답변 (3개)

nada khatib
nada khatib 2023년 5월 12일
You have to use "signal specfication" block between the spectrum analyzer and the signal you want to see its spectrum. Then set the sample time inside the block "signal specification" to specific value (such as 1/320000)

Amir Salar
Amir Salar 2022년 2월 3일
편집: Amir Salar 2022년 2월 3일
I know it is a little late to answer you Cesar but I will write it anyway I hope it can help people in the future,
I tried to fix this issu by double clicking on my input signals then click on Signal Attributes and scroll down you will see "Sample time" write: 1/(whatever you sample frequency is) ;
Forexample I defined my sample frequency as Fs=96; (this part in matlab)
then I write 1/Fs (this part in simulink)
it solved my problem

Starhowl
Starhowl 2020년 1월 21일
In my case it was because the sampling frequency of the window was set to 1, while that of all other blocks was set to 1/44100. It didn't matter that all blocks were set to discrete!

카테고리

Help CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by