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.

CCS/IWR6843ISK: IWR6843 - Want to save the plotting points in a file.

Part Number: IWR6843ISK
Other Parts Discussed in Thread: IWR6843

Tool/software: Code Composer Studio

IWR6843  has been configured for people counting Demo. It is working fine. I  want to save the tracking points of the people in a file for further analysis. Please help me with the steps to save the plotting points.

  • Hi Deepanjan,

    Press the exit button in the gui to save the points and tracks to a file called fHistRT.mat

    Regards,

    Justin

  • Hi Justin,

    I did follow your instructions and got this in the file.

    4d41 544c 4142 2035 2e30 204d 4154 2d66
    696c 652c 2050 6c61 7466 6f72 6d3a 2050
    4357 494e 3634 2c20 4372 6561 7465 6420
    6f6e 3a20 5475 6520 4a75 6e20 3138 2031
    363a 3438 3a34 3220 3230 3139 2020 2020
    2020 2020 2020 2020 2020 2020 2020 2020
    2020 2020 2020 2020 2020 2020 2020 2020
    2020 2020 0000 0000 0000 0000 0001 494d
    0f00 0000 8520 0200 789c e263 6060 f851
    ccc3 c006 a439 8098 8901 0258 a17c 4620
    f663 84d0 20b1 348f cce2 1230 9b85 4100
    2aff 0088 4b12 8bd2 534b dc8a 1273 53fd
    4a73 1918 922a 4b52 8b19 1020 af34 d733
    afa0 b424 203f 33af a418 ccf7 2f2d 4108
    9464 e6a6 1697 24e6 1640 d503 d945 2548
    fa93 52f3 9233 7213 8bb2 a186 a6e4 e7a5
    2249 3314 808c 71ce c92f 4d81 f021 eef1
    8138 1608 32f3 5252 2b1c 8b8a 122b a1e6
    81dc e758 9698 9993 9894 0334 2923 3531
    25b5 08c5 bd21 6023 a0f6 f101 b101 10c3
    c289 174b 38c1 3003 581d 0bc3 0257 36b2
    f47d 24d3 3e56 2cfa d808 e863 02b2 60fa
    2c90 f4f1 13d0 c70b 155f 5f35 499a 198b
    7e42 f672 42c5 a352 acef fb9f 1574 00e9
    0f20 a09f 054d bf02 101f b454 f6aa 3eac
    edb0 307d f3ab 6255 3b87 c58c 7b58 855c
    1c1c 2aab 96ea 38e7 3838 90eb 2ea5 bfdf
    4a1f 8878 81f5 3720 e967 47d3 cf02 65c3
    f4b3 43fd 3183 6787 434b 41a0 fdc2 9263
    fb4a 9c66 3996 eddd e4a0 7b31 d27e cbe1

    Please tell me how to derive meaning out of it.

    From

    Deepanjan Paul

  • Hi Deepanjan,

    You will need Matlab to read this file.

    Regards,

    Justin

  • Hi Justin,

    Thanks for your reply. I managed to install MATLAB and open the main_pplcount_viz.m  file , I see another file setup.m  , Please  tell me the procedure to build the Exe from the .m files. If you have any document  stating the steps to build please tell. I need the steps to generate the print-gui.exe.

    I am using deploytool for building the exe.

    From

    Deepanjan Paul

  • Hi Deepanjan,

    You do not need to compile to run the gui in Matlab. If you want to read the fHistRT file, you can just open it with Matlab, and scan through its contents.

    If you are trying to compile for some other reason, you should find the Matlab documentation for compiling applications.

    Regards,

    Justin

  • Hi,

    I  could compile the GUI using matlab  and create the new gui.exe 

    targetStruct = struct(...
    'tid', {'uint32', 4}, ... % Track ID
    'posX', {'float', 4}, ... % Target position in X dimension, m
    'posY', {'float', 4}, ... % Target position in Y dimension, m
    'velX', {'float', 4}, ... % Target velocity in X dimension, m/s
    'velY', {'float', 4}, ... % Target velocity in Y dimension, m/s
    'accX', {'float', 4}, ... % Target acceleration in X dimension, m/s2
    'accY', {'float', 4}, ... % Target acceleration in Y dimension, m/s
    'EC', {'float', 9*4}, ... % Tracking error covariance matrix, [3x3], in range/angle/doppler coordinates
    'G', {'float', 4}); % Gating function gain

    Is this the structure for getting the plotting of persons ?  

  • Hi Deepanjan,

    Yes, we use PosX and PosY to plot the X and Y locations.  

    Regards,

    Justin

  • Hi Justin,

    Thanks a lot for your clarification. It helped me a lot to reach my destination, yet I have couple of  questions which will help me to nail my problem.

    (1)  I see the structure 

    targetStruct = struct(...
    'tid', {'uint32', 4}, ... % Track ID
    'posX', {'float', 4}, ... % Target position in X dimension, m
    'posY', {'float', 4}, ... % Target position in Y dimension, m
    'velX', {'float', 4}, ... % Target velocity in X dimension, m/s
    'velY', {'float', 4}, ... % Target velocity in Y dimension, m/s
    'accX', {'float', 4}, ... % Target acceleration in X dimension, m/s2
    'accY', {'float', 4}, ... % Target acceleration in Y dimension, m/s
    'EC', {'float', 9*4}, ... % Tracking error covariance matrix, [3x3], in range/angle/doppler coordinates
    'G', {'float', 4}); % Gating function gain

    but cannot get hold of the posX,posY  so that I can write it on my file for my project to use it.

    (2)  I got into the fHistRt.mat  file and opened the point cloud  tab and saw 

    2.0462201     4.3136530     4.3136530      4.3136530
    -0.91629785 -0.88357294   -0.85084802   -0.81812310
    0.077521712 0.077521712  0.077521712   0.077521712
    8.1657124    10.908037       11.011115       7.8436275

    Please tell the headers for it.

    (3) In target list structure tab I get  

    (1) Numtargets  - I hope this is the number of people count.

    (2) TID - The IDs, like 1,2,3 depending on the number of people.

    (3) S - Could not understand  got values like  

    0.966949999332428 0.0743650645017624
    3.49675631523132 0.802237391471863
    0 0.198953077197075
    0 -0.135047361254692
    0 0.410013854503632
    0 -0.248371139168739

    (4) G - Could not understand (4,4)

    From

    Deepanjan Paul

  • Hi Deepanjan Paul,

    Posx through AccY are stored in the S structure in the order shown in the targetStruct.

    The point cloud format is as described in the user's guide: Range, angle, doppler, SNR - These values are stored sequentially in the columns.  First point is:

    Range: 2.046

    Angle: -0.916

    Dopper: 0.077

    SNR: 8.165

    TID is an identifier for each track.  So TID 4 is the same person frame to frame.

    By G I think you mean EC. This is an error covariance matrix for the Kalman filter used for debug purposes.

    Regards,

    Justin

  • Hi  Justin,

    Thanks for your detailed explanation. I could get the coordinates from the MATLAB code. Is there any documentation where we can tap the data from the Sensor without the GUI ? 

    Another thing is that  we want to run 3 sensors to run on a single PC.  Do we have any application which supports multiple  MMwave sensors ?  

  • Hi Deepanjan paul,

    See the User's Guide - output data format is at the end of the section. There is not currently a demo that works with multiple sensors on TIREX. Essentially, you would just need multiple UART parsers.

    Regards,

    Justin