How to display a variable Receiver Antenna's Gain value onto the Spectrum Analyzer in Matlab Simulink?
3 次查看(过去 30 天)
显示 更早的评论
Dear Sir,
i have a problem in displaying a variable's value , named Gr onto the Simulink's Spectrum Analyzer
This variable Gain's value (Gr) is to be passed onto the Receiver Antenna as its Antenna Gain value and i want to then display this Receiver Antenna's Gain value (Gr) onto the Spectrum Analyzer in the Simulink, but i don't know how to do that.
I have created a Model, Named: Testing_Receiver_Antenna_Only_V2 and is attached.
so please provide me with some suggestion/feedbacks on how to display the variable Receiver Antenna's Gain value onto the Spectrum Analyzer in Matlab Simulink.
Thanks and regards
Kei Lam
0 个评论
回答(1 个)
Bhanu Prakash
2023-12-26
Hi Kei,
I understand that you want to display ‘Receiver Antenna’s Gain Value (Gr)’ onto the Spectrum Analyzer in Simulink.
The block ‘Receiver Antenna Gain’ sends data of ‘single’ datatype to the ‘Receiver Antenna’ block, which leads to a data-type mismatch error as the ‘Receiver Antenna’ block expects the datatype to be ‘double’.
You can change the output datatype of ‘Receiver Antenna Gain’ block by modifying its Block Parameters as shown below:
Assuming the gain value ‘Gr’ to be present in the base workspace, you can display it in Spectrum Analyzer by using the ‘Constant’ block in Simulink as shown below:
The resulting waveforms in the Spectrum Analyzer are as follows:
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Antennas and Electromagnetic Propagation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!