infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 8 of 8

Thread: MATLAB interface plugin Distance2Go 24 GHz radar demo kit

  1. #1
    New Member New Member radaruser is on a distinguished road
    Join Date
    Aug 2018
    Posts
    23
    Points
    155

    MATLAB interface plugin Distance2Go 24 GHz radar demo kit

    Hi,

    I am working with the Infineon Distance2Go 24 GHz radar demo kit for ranging, movement and presence detection (with a XMC 4200 microcontroller and BGT24MTR11 for radar purposes). The board and the Radar GUI (as a part of the Infineon Toolbox) are working fine, but I'd like to gather live data from the baord with MATLAB.
    In the application note AN543 is said 'A Matlab Interface plugin is also available to extract the raw IF data from the radar module via the USB interface to the PC/laptop for further signal processing'.
    Where can I find/download/install that plugin? Using the MATLAB search for additional toolboxes there is only the XMC Library for Embedded Coder (by Infineon) but this does not seem to be the right software.

    Has someone else already tried to use this board in connection with MATLAB and can help me?

    Thank you in advance!

  2. #2
    New Member New Member zmjafri is on a distinguished road
    Join Date
    Sep 2018
    Posts
    10
    Points
    130
    Hey, have you found the software package yet? It's in the provided software under hostcommunication -> matlab.

  3. #3
    New Member New Member radaruser is on a distinguished road
    Join Date
    Aug 2018
    Posts
    23
    Points
    155
    Hey,
    yes thank you, I found it in the meantime

  4. #4
    Beginner Beginner IdUlster is on a distinguished road
    Join Date
    Feb 2019
    Posts
    3
    Points
    60

    Matlab script for velocity, range and fft

    Hi,
    please, can someone help with MATLAB script that can help readout velocity, range and FFT values. I also want them saved for further analysis.

    Many thanks

    ID

  5. #5
    Intermediate Intermediate
    Infineon Employee
    Infineon Employee
    tinymanta is on a distinguished road
    Join Date
    Jan 2019
    Location
    Munich
    Posts
    16
    Points
    290
    Hi IdUlster,

    Which radar platform from Infienon are you using ?
    Please try to browse to /Firmware_Software/Communication Library/ComLib_Matlab_Interface.zip file.

    Cheers,
    Montassar.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  6. #6
    Beginner Beginner IdUlster is on a distinguished road
    Join Date
    Feb 2019
    Posts
    3
    Points
    60
    Hi Montassar,

    I am using Disatance2go and have tried using the zip file but could not read out velocity and range data as would on the Infineon Radar GUI. Please,am I missing out something?
    Many thanks

    IdUlster

  7. #7
    Intermediate Intermediate
    Infineon Employee
    Infineon Employee
    tinymanta is on a distinguished road
    Join Date
    Jan 2019
    Location
    Munich
    Posts
    16
    Points
    290
    Hi IdUIster,

    Please refer to the matlab\RadarSystemDocumentation\MATLAB Radar System API Distance2Go.pdf file.
    You can there find details about the get_targets() API, that returns the received target information as a struct containing the target information like speed and distance...

    Let me know about your findings.
    Cheers,
    Montassar.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  8. #8
    Beginner Beginner IdUlster is on a distinguished road
    Join Date
    Feb 2019
    Posts
    3
    Points
    60
    Hi Montassar,

    Million thanks for your help but trust me, I am a complete novice with MATLAB. I have tried the codes on the pdf file and some more online to no avail. I will be grateful if you can help me out with the codes, please.

    here is what I tried:

    clc
    disp('******************************************** **********************');
    addpath('..\..\RadarSystemImplementation'); % add Matlab API
    clear all %#ok<CLSCR>
    close all
    resetRS; % close and delete ports

    % 1. Create radar system object
    szPort = findRSPort; % scan all available ports
    oRS = RadarSystem(szPort); % setup object and connect to board

    % The automatic trigger runs after startup by default
    oRS.oEPRadarBase.stop_automatic_frame_trigger; % stop it to change values
    oRS.oEPRadarFMCW.lower_frequency_kHz = 24025000; % lower FMCW frequency
    oRS.oEPRadarFMCW.upper_frequency_kHz = 24225000; % upper FMCW frequency
    oRS.oEPRadarFMCW.tx_power = oRS.oEPRadarBase.max_tx_power;
    oRS.oEPRadarBase.num_chirps_per_frame = 1;
    oRS.oEPRadarBase.num_samples_per_chirp = 256; % [32, 64, 128, 256]
    oRS.oEPRadarBase.rx_mask = bin2dec('0001'); % D2Go has single Rx
    oRS.oEPRadarFMCW.direction = 'Up Only';
    % 3. Trigger radar chirp, get the raw data and plot it
    [mxRawData, sInfo] = oRS.oEPRadarBase.get_frame_data; % get raw data
    plot([real(mxRawData(:,1)), imag(mxRawData(:,1))]); % plot data

    ...I also tried 'get_speed_kmh'

    Many thanks

    IdUlster
    Last edited by IdUlster; May 3rd, 2019 at 03:08 PM. Reason: adds

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.