This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AWR1843BOOST:MATLAB 代码示例中的 chunkSize 是什么

Guru**** 1957125 points
Other Parts Discussed in Thread: AWR1843BOOST
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1205622/awr1843boost-what-is-chunksize-in-example-matlab-code

器件型号:AWR1843BOOST

大家好、 本文中提供了一个用于读取二进制文件的 MATLAB 脚本、另请参阅下面的。 不过我有两个问题:

1.什么是 chunkSize? (具体适用于 AWR1843Boost)

2.在某种`应该有一条` end 指令,但我不确定在哪里?

提前感谢。

%*****
%%读取二进制文件
%*****
fname = strcat (dirname、filename);
fid = fopen (fname、'r');
   
adcOut =[];
InputLoadingPosition = 0;
对于 indexFrame=1:numFrames
   
   fseek (fid、inputLoadingPosition、'bof');
   dataChunk = fread (fid、chunkSize、'uint16'、'l');
   InputLoadingPosition = ftell (fid);   
   
   dataChunk = dataChunk -(dataChunk >= 2^15)* 2^16;
   
   % radar_data 具有以下格式的数据。
   % Rx0I0、Rx0I1、Rx0Q0、Rx0Q1、Rx0I2、 Rx0I3、Rx0Q2、Rx0Q3、...
   %以下脚本将其重新塑造成三维阵列。
   % size (adcOut)=[每个线性调频脉冲的 ADC 样本 x 每帧的线性调频脉冲 x 虚拟通道数]
   
   len = length (dataChunk)/ 2;
   adcOut (1:2:len)= dataChunk (1:4:end)+ 1J* dataChunk (3:4:end);
   adcOut (2:2:len)= dataChunk (2:4:end)+ 1J* dataChunk (4:4:end);
   adcOut = reshape (adcOut、chirp_NUM_ADC_SAMPLE_SIZE、numTXAnt*4、chirp_NUM_chirps);
   adcOut = permute (adcOut、[1、3、2]);
       
   %*****
   %%雷达信号处理
   %*****
   第一个线性调频脉冲的 ADC 数据百分比图
%    图(1);CLF
%    plot (real (adcOut (:、1、1))、'r');
%    保持
%    plot (imag (adcOut (:、1、1));
%    图例("I-Channel"、"Q-Channel");栅格打开
%    标题('ADC 数据')
  
   
   
   第二维(样本)上的% 1D 距离 FFT、无填充零
   fftSize1d =大小(adcOut、1);
   radar_data_1dFFT = FFT (adcOut、[]、1);%.* Window_1d

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    布拉德利、您好!

    请在下面找到我的回答。

    1. 鉴于 for 循环如何迭代帧数以及如何为循环的每次迭代读取数据块、我想说块大小就是帧的大小 (每帧 uint16样本数、即 每条线性调频脉冲的 Num ADC 样本数 x 每帧的线性调频脉冲数 x 虚拟通道数 x 2 (因为样本很复杂))
    2. 末尾将位于代码的末尾。 完全每帧完成处理。

    此致、

    Kaushik

x 出现错误。请重试或与管理员联系。