Spectrum Analyzer sample rate.

26 ビュー (過去 30 日間)
Paul Hamilton
Paul Hamilton 2021 年 5 月 9 日
回答済み: Yoshi Minagawa 2021 年 5 月 21 日
How do I change the sample rate of the spectrum analyser in a circuit? I cannot do this in either simulink or simscape. I keep getting an error that says it cannot open because the sample rate cannot be either continuous or zero.

採用された回答

Yoshi Minagawa
Yoshi Minagawa 2021 年 5 月 21 日
Hello Paul,
Please check the signal type of inport signal connected to Spectrum Analyzer Block. It must be a discrete signal. It is also written in the documentation.(see below)
If the signal is continuous and you want to change it to a discrete signal, please use Rate Transition block.(see below)
I hope this will help.

その他の回答 (1 件)

Pratyush Roy
Pratyush Roy 2021 年 5 月 12 日
Hi Paul,
When you right click on the Spectrum Analyzer block and click on the "Properties" option, the following window will pop up:
After you click on the highlighted link, it leads you to the Spectrum Analyzer1 window which looks like the following:
On the top-left corner you can select Spectrum Settings(highlighted using Yellow) and then you can set the sample rate using the option as shown on the right (highlighted using Red).
Hope this helps!
  1 件のコメント
Paul Hamilton
Paul Hamilton 2021 年 5 月 12 日
This did not work. The sample rate box just shows Inherited and I cannot change it.
thanks though.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by