TI中文支持网
TI专业的中文技术问题搜集分享网站

AWR1642 + DCA1000EVM 將取得 raw data 畫出時域訊號



clear;close all;clc; adc_file_name = 'F:\DCA1000\adc_data.bin'; Samples_Per_Chirp = 256; % complex adc samples per chirp Number_of_channels = 4; Chirps_Per_Frame = 64; Number_of_Frames = 10; total_samples = 2 * Samples_Per_Chirp * Number_of_channels * Chirps_Per_Frame * Number_of_Frames; % Open the file and read the data. fileID = fopen(adc_file_name,'r'); % TSW1400 converts ADC data to offset binary. Convert it back to 2's % complement. radar_data = fread(fileID,total_samples,'uint16')-2^15; fclose(fileID); % radar_data has data in the following format. % Rx0I0, Rx0Q0, Rx0I1, Rx0Q1, Rx0I2, Rx0Q2, Rx0I3, Rx0Q3, ... % The following script reshapes it into a 4-dimensional array. radar_data = reshape(radar_data, 2*Samples_Per_Chirp, Number_of_channels, Chirps_Per_Frame, Number_of_Frames); % Convert the data to complex radar_data_real = radar_data(1:2:end, :, :, :); radar_data_complex = radar_data(2:2:end, :, :, :); radar_data = radar_data_real;%+ 1i*radar_data_complex; % Permute the dimensions of the array are so that they are of the format % [Channels, Samples, Chirps, Frames] radar_data = permute(radar_data, [2,1,3,4]); a = radar_data(1,:); plot(a);

untitled123123.tif

user5331792:

(上文不知為何不能插入文字)
您好,我使用以下的code取得了其中一個channel的raw data.
畫出來後是這樣的(圖二)
據我的理解,這應該是fm調變的信號
意思是若我想畫出mmwave studio中的time domain graph
我需要自己處理嗎?
還是我拿出的資料基本是錯誤的?

感謝

赞(0)
未经允许不得转载:TI中文支持网 » AWR1642 + DCA1000EVM 將取得 raw data 畫出時域訊號
分享到: 更多 (0)