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: Getting Error in running the MATLAB Code

Part Number: AWR1642BOOST

Hi,

Running the MATLAB code to turn the adc_data.bin file into a matrix for further processing has been giving me errors.

Please review the screenshot in the attachment and offer

   

Regards

Arjun

  • Hi,

    For reference, the code from the Application Report is being used

    https://www.ti.com/lit/an/swra581b/swra581b.pdf

    Please note that you are not calling the function properly.

    It should be

    %%% Command to run in Matlab GUI - readDCA1000('<ADC capture bin file>')

    and not

    %%% Command to run in Matlab GUI - readDCA1000("<ADC capture bin file>")

    Thank you

    Cesar

  • Hi Cesar,

    I didn't say that the same faults happen in both directions. I use a different chirp configuration. Reshape function, line 45, contains the error. Please advise what modifications should be made to the provided MATLAB code. The screenshots show comprehensive details.

        

    Regards

    Arjun

  • Hi,

    Please make sure that the matlab script is updated as needed based on your configuration.

    I can see in your snapshots that adc_samples = 256, so "numADCSamples = 256" is still correct.

    What about "numRx"?

    thank you

    Cesar

    % change based on sensor config

    numADCSamples = 256; % number of ADC samples per chirp

    numADCBits = 16; % number of ADC bits per sample

    numRX = 4; % number of receivers

    numLanes = 2;% do not change. number of lanes is always 2

    isReal = 0; % set to 1 if real only data, 0 if complex data0

  • Hi,

    I read the Lua script, and it appears that two RX are being employed. The scripts are included for your convenience. However, I could not comprehend the significance of the other lane configuration parameters. But I could not run the MATLAB script. It shows that It would make it easier for me to run the MATLAB  code.Please suggest a way to fix it.

           3617.mmwave_code.zip

    Regards

    Arjun

  • Hi,

    I checked the lua script and it looks correct.

    I think the error comes from numChirps computation.

    Can you please compute manually

    numChirps = fileSize/2/numADCSamples/numRx

    I don't think this will be an integer, that's why the reshape function has an error.

    Due to the long recording time (~ 2 hrs) I think it is possible that some samples are dropped

    thank you

    Cesar