Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Radar sensor Forum Discussions

Taylor70
Level 1
10 sign-ins 5 sign-ins First reply posted
Level 1

Hey

Is there a way to view the recorded radar data captured in the "Radar Fusion GUI" in matlab signal analyzer app?

They are saved as a .json and raw.bin files which matlab can't read 

thanks 🙂

0 Likes
1 Reply
HoneyDhandhukia
Moderator
Moderator 25 solutions authored 50 replies posted 10 likes received
Moderator

Hello @Taylor70 ,

While recording the data from Radar Fusion GUI, select the Raw Data(.txt) format from recording settings.

Capture.PNG

Following the recording, extract the data from txt file into MATLAB using the following code:

% Read in file
allData = textread('BGT60TR13C_record_20220801-104524.raw.txt', '%s', 'delimiter', '\n');
% Make allData cells empty if numerical
numericalArray = cellfun(@(s) sscanf(s,'%f').' ,allData, 'un', 0);
% Get Header
header = allData(cellfun('isempty',numericalArray));
% Get Data
data = vertcat(numericalArray{:});
plot(data)

Following the execution of the code, save the data variable in the workspace into .mat format to plot it in signal analyzer

Matlab_data.PNG

Hope this helps!

Best Regards,

Honey

 

0 Likes