In Simulink Library - RF Blockset 's Sources how to make the Continuous Wave's Carrier frequencies tunable?

2 次查看(过去 30 天)
Dear Sir,
I am a beginer user to Matlab and i have ran into some issue which i don't know how to resolve.
  1. I am trying to use a Rotary Knob to vary the Carrier Frequencies of the Continuous Wave from the Simulink Library - RF Blockset 's Sources, but i can't and it show some error.
  2. The Rotary Knob can't seem to connect to the Continuous Wave, it will display the following error.
3. What i want to acheive is that, when the simulation is running, i want to change the Continuous Wave's Carrier Frequencies and let it display on the Spectrum Analyzer.
So please provide me with some feedbacks/suggestion on how to make this work.
kind regards
Kei Lam

回答(1 个)

Naren
Naren 2023-10-26
Hello Kei,
I understand that you're working on a model that adjusts the signal frequency based on the value from a Rotary switch. However, you're encountering an error message stating that the rotary knob cannot connect to the continuous wave.
The problem arises from the 'Continuous Wave' block, which doesn't have any tuneable parameters. To solve this issue, you can replace the continuous wave block with a 'sine wave' block instead. The sine wave block generates a sine wave with a frequency that corresponds to the value from the rotary switch.
Regards, Naren

类别

Help CenterFile Exchange 中查找有关 Block Libraries 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by