Question about how to run TX and RX calibration example model on zedboard with zynq
12 次查看(过去 30 天)
显示 更早的评论
I am doing an experiment: I combined the following two examples:
Transmitter example: https://ww2.mathworks.cn/help/supportpkg/xilinxzynqbasedradio/examples/frequency-offset-calibration-transmitter-using-analog-devices-ad9361-ad9364.html
Receiver example: https://ww2.mathworks.cn/help/supportpkg/xilinxzynqbasedradio/examples/frequency-offset-calibration-receiver-using-analog-devices-ad9361-ad9364.html
The combined model is shown in the image:
I have the boards: AD-FMCOMMS4-EBZ(which is AD9364) evaluation board) and Zedboard with Xilinx Zynq. when I run the model, the signal plotted in time scope is discontinuous sin wave but not continuous sin wave. | | Is the discontinuous sin wave plotted in time scope correct?||
0 个评论
采纳的回答
Paul
2018-10-22
Hi Ardeal,
Transmit and receive on one same hardware using Tx and Rx blocks is not recommended. As both documentation link you have shared are highlighting:
"
Make sure that you have both the transmitter script Frequency Offset Calibration Transmitter Using Analog Devices AD9361/AD9364 and the receiver script Frequency Offset Calibration Receiver Using Analog Devices AD9361/AD9364 open, with each configured to run on its own SDR hardware in its own instance of MATLAB.
"
If you give a look at the receiver block's "lost samples" output, you will likely see some frames being dropped. There will be performances issues by running both models on the same hardware at the same time.
I suggest you use the transmitRepeat function as highlighted here: Transmit and Receive On Single Device. You will be able to transmit and receive data on your device.
On a side note, these two scripts are meant to calibrate a frequency offset existing between two devices. There will be no frequency offset if the scripts are run on the same device.
I hope this helps you in your experiment!
Paul
0 个评论
更多回答(2 个)
Ardeal Liang
2018-10-22
编辑:Ardeal Liang
2018-10-22
1 个评论
Paul
2018-10-23
There are some bottlenecks involved in running a receiver and a transmitter in Normal mode in Simulink at the same time on the same device. It requires for the data to go from the chip to the host with too high rates to ensure continuous streaming. This is not a supported use case.
That is why you should consider using the `transmitRepeat` functionality as highlighted above. It will let the transmitter transmit without being actively fed by the host, it will transmit a given waveform repeatedly.
As for your question on the loopback cable, please refer to my answer here to your similar question.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!