Announcements

Curious on how you can apply Rador Sensors to Smart Home Appliances? Register for the ASEAN Smart Home Appliance Webinar here to find out how.

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

Radar sensor Forum Discussions

Taylor70
Level 1
25 sign-ins First like given First like received
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 Solution
HoneyDhandhukia
Moderator
Moderator 5 likes given 250 sign-ins 25 solutions authored
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

 

View solution in original post

0 Likes
1 Reply
HoneyDhandhukia
Moderator
Moderator 5 likes given 250 sign-ins 25 solutions authored
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