필터 지우기
필터 지우기

Getting error in running continuous sample data in AD9361 transceiver example

조회 수: 4 (최근 30일)
Hi All,
i am tring to run AD9361 example model. with default random integer under payload section the model works fine and i am able change the parameters using filterwizard. But when i am trying to add data source under txdata (random integer) by sampling an audio file using multi media block .
I am geting this error " Error in 'ad9361_qpsk_Tx_test/QPSK_TX/Unbuffer': All sample times must be discrete. No continuous or constant sample times are allowed."
But how to resolve this issue as actual data will always come as continuous sample.

채택된 답변

Jieming Xu
Jieming Xu 2021년 3월 12일
Hi Mainak,
Just want to make sure you are using the multi media block in this link. If it is the case, I think it may cause some sampleing rate mismatch issue in simulink and AD9361.
My suggestion is that, may be you can first load your audio signal into the work space and use From Workspace block to load data from your workspace to simulink.
Best regards,
Jieming Xu
  댓글 수: 1
mainak GH
mainak GH 2021년 3월 17일
편집: mainak GH 2021년 3월 17일
Yes i am using multimedia block . Thanks for pointing out .
I am posting reading audio file coe which i have tried . it reads frame by frame and in my case after 345 frame it created the MAT file
fpassband=21000;
desiredFs=48000;
NormFc=21000/48000;
[x,OriginalFs] = audioread("file.mp3"); % y samples from audio with Fs sampling frequency in [Hz].
N = length(x); % sample lenth
duration_audio=N/OriginalFs;
afr = dsp.AudioFileReader('file.mp3','ReadRange',[1 8.007*desiredFs]);% Use duration_audio
while ~isDone(afr)
audio_frame = afr();
audio_frame_singleCH=audio_frame(:,1);
framecnt=framecnt+1;
end
save("audio_frame_full.mat","audio_frame_full");
release(afr)
Now as my data is ADC coverted and single frame is 24576 bit. Should i read the sigle frame and pack in single payload data or i need to split this data? As the communication frame size is getting bigger if i use this approach.
Also in the zedboard has ADAU chip which is sampling at 24Mhz . How to mimic the funtionality as the DSP.audioreader is sampling at 1k of the Mp3. Then the actual FPGA baseband area which is sampling at 100Mhz . Will it not create too much interpolated data ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Import and Export에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by