I tried the example https://github.com/analogdevicesinc/MathWorks_tools/tree/master/hil_models/fmcomms2_3_data_stream and transmitted a sinusoid at 2.4GHz. And I did the same thing by using IIO Oscilloscope application in Windows (via remote connection). The problem is that while IIO oscilossope gives a continuos transmission, MATLAB example transmits the signal and stops and repeats the cycle. I attached the results in the post.
I would like to know what is the cause of it and how can it be solved? My main purpose is to transmit and receive an arbitrary signal (Sinusoid, QAM, OFDM etc.) and analyze it using MATLAB.
Thanks in advance!
By default the MATLAB example will create cyclic buffers, meaning they repeat constantly like IIO-Scope. However, when you release/clean the system objects, which we do at line 40 in the example, that will clear that buffer. Simply do not run like 40 to keep the buffer repeating.
Thank you so much for answering,
Actually that was happening in the simulink example in the given link. As I understand commenting out line 40 in "ad9361_matlab.m" will solve the problem in the m file. On the other hand, how can I solve this problem in Simulink?
You must keep the model running.
Do you mean keep running the m file? Is there any other way to achieve continuous transmission in Simulink?
After commenting out line 40 in ad9361_matlab.m, I achieved continuous transmission as seen in the video. However, I observed some signal sliding over the transmitted signal.
I would like to know what is the cause of it?