【基带开发】AD936验证数据源是连续的

五字节

%% 加载数据文件
BD_fileID       = fopen('rxdata3qpb.bin','r');                                          % 获取  文件ID  
DATA_BD         = fread(BD_fileID,Inf,'uint8');                                        % 读取  文件数据
fclose(BD_fileID);                                                         % 关闭文件

BDDATA_RAW  = reshape(DATA_BD,[ 5 length(DATA_BD )/5])';                   % 帧格式转换

BDDATA_RAW_COUNT = BDDATA_RAW(:,5) + BDDATA_RAW(:,4) * 2^8 + ...
                   BDDATA_RAW(:,3) * 2^16 + BDDATA_RAW(:,2) * 2^24 ;                                        % 帧计数转换

BDDATA_RAW_DIFF = diff(BDDATA_RAW_COUNT);                                  % 帧计数差分

plot(BDDATA_RAW_DIFF)

四字节

%% 加载数据文件
BD_fileID       = fopen('rxdata3qpa.bin','r');                                          % 获取  文件ID  
DATA_BD         = fread(BD_fileID,Inf,'uint8');                                        % 读取  文件数据
fclose(BD_fileID);                                                         % 关闭文件

BDDATA_RAW  = reshape(DATA_BD,[ 4 length(DATA_BD )/4])';                   % 帧格式转换

BDDATA_RAW_COUNT = BDDATA_RAW(:,4) + BDDATA_RAW(:,3) * 2^8 + ...
                   BDDATA_RAW(:,2) * 2^16;                                        % 帧计数转换

BDDATA_RAW_DIFF = diff(BDDATA_RAW_COUNT);                                  % 帧计数差分
BDDATA_RAW_DIFF(BDDATA_RAW_DIFF==-16777215) = 1;
plot(BDDATA_RAW_DIFF)

你可能感兴趣的:(FPGA,-,面向物理层基带算法工程师,fpga开发,USRP,通信,AD9361,FPGA)