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.

AWR1642BOOST: Reading the header of the saved dat file from mmWave Demo Visualiser

Part Number: AWR1642BOOST

Good day, 

I am trying to read the the saved dat file from the mmWave demo visualiser. I have managged to open open the file but reading it is a challenge. Here is where I am at the moment.

%% read the dat file.
my_file=fopen('dat_3.dat');

% extract the header here!!
magicword=fread(my_file,8,'uint16');
header = headRead(my_file)

data=cell(header{7},3); % 3 for the tag,length and payload.

for i=1:header{7}
    TLV=getTLV(my_file,header{6},range_bins_num,tx_num,rx_num,chirpsperframe);
    data(i,:)=TLV;
end

line 8 to convert the cell is throwing the error I attached below:

How can I best read the header?

attached is the dat file:

dat_3.dat