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.

DCA1000EVM: DCA1000 and IWR1642BOOST, post-processing with example Matlab code

Part Number: DCA1000EVM
Other Parts Discussed in Thread: IWR1642BOOST

Hi,

I have the DCA1000 and IWR1642BOOST connected, and run the DataCaptureDemo_xWR.lua example. I then use the example Matlab code from the SWRA581A document (page 16-17), with no changes, and end up with a fileSize being 2095431. (Only change I did was comment out the "function" part and instead do 

clear all;
fileName = 'adc_data.bin';

for ease of use so I can monitor the variables.)

Shouldn't fileSize be an even number? Cause when Matlab executes LVDS = zeros(1, fileSize/2); I obviously get the error message that it needs to be an integer. I just don't quite see what I need to change in the Matlab example code for it to work with the output from DataCaptureDemo_xWR.lua.

Thanks!

  • Yes, it should be even number. I ran default DataCaptureDemo_xWR.lua and got adc_data.bin with 4096KB size which corresponds to 2097152 data in double.

    Is the lua script modified? A possibility is a continuous data stream is used and the raw data contains partial chirp data. In that case, you could specify the number of frames you would like to use, and only work on selected data.

    Thanks and Regards,
    Michelle
  • Hi,

    Thanks for the input. I've run the script several times now, and every time I get 4093KB of data in the resulting adc_data.bin-file. I receive all the UDP packets (2879, none lost, the script feedback says), and I haven't altered the lua script. It's just a bit worrysome that some data is lost, cause then I don't know what samples correspond to what chirp. Any other ideas of what I should check, or what might be wrong?

  • Hi,

    One thing I can think of is to increase Ethernet delay. You can set that when open setup DCA1000 window. 

    Is your Ethernet cable connected to PC directly? Not through dock station or usb-Ethernet adapter?

    Thanks and Regards,

    Michelle

  • Hi Michelle,

    I finally got it to work properly. Instead of runnning the DataCaptureDemo_xWR script, I manually stepped through the process shown in the corresponding instruction video. Now I get the correct amount of data, and can easily also change the number of frames (which in the past caused an error if I changed the frame config in the above-mentioned script). Also, I didn't need to de-dock my laptop for it to work.