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

2 views (last 30 days)
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

Answers (1)

Naren
Naren on 26 Oct 2023
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

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!