I have sent email about the following question.
As the slx model file cannot be pasted here, I sent you the slx file by email.
I copied the model from Matlab web site:
and combined them in my model:
The data I got in time scope in the model above:
According to my understanding, the data plotted in time scope in my model should be continuous sin wave with the same frequency as that in Tx model.
Is my understanding correct?
My HW setup:
I have the following hardware boards: AD-FMCOMMS4-EBZ and Zedboard with Xilinx Zynq
I have the following sofware installed on my computer:
1) Matlab_R2018a X64 version
1.1) Communications System Toolbox Support Package for Xilinx Zynq-Based Radio
1.2) Embedded Coder Support Package for Xilinx Zynq Platform
1.3) HDL Coder Support Package for Xilinx Zynq Platform
2) Vivado Design Suite 2017.2
2.1) Xilinx_Vivado_SDK_2017.2.1_0810_1 update package
From your modeling setup it appears that the transmitter is heavily underflowing, meaing that you are not providing data fast enough. Increasing the buffer size passed to the transmitter will help. Also make sure the transmitter is not in the same model as the receiver.
The receiver frequency estimation algorithm is also based on an FFT estimation so it is only accurate to the (sample rate)/(FFT bins).
Many Thanks for your reply!
how to increase the buffer size passed to the transmitter?
If I run the transimitter and receiver in different model, I cannot receive any data in receiver.
Could you please send me a simple example about how to run the transmitter and receiver in different model?
Change the sinusoidal source to produce larger frames.
You can run those sections of the model (TX path and RX path) in separate models in parallel just fine.
Many thanks for your answer!
I will try to increase the frame number of sin wave.
Yesterday, I have already run transmitter and receiver of of Matlab example in separate model, but I received nothing.... That is weird.
Were you running the Simulink model in parallel with the MATLAB script, or running the MATLAB scripts one after the other?