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.

AWR1243BOOST: Radar Studio Automation

Part Number: AWR1243BOOST

Dear TI Support, 

I am currently working with the following HW chain: AWR1243BOOST + DEVPACK + TSW1400, and the following SW chain: Radar Studio v1.9.2.1 + HSDCPRO. Currently, I am able to capture the raw ADC data following the standard procedure given in the user guides, i.e., setting up the radar parameters using Radar Studio -> Setting up the TSW1400 -> ARM TSW1400 -> Trigger Frame. Finally, with the resulting .bin/.csv file we are able to post-process the data using our own MATLAB scripts. However, our intention is now to make this entire capturing/post-processing automatic. 

I have gone through the documentation on Lua Scripting for Radar Studio and, as far as I understood, by using the LUA Schell, we can automate Radar Studio completely. However, I am still not able to understand how can I link or control Radar Studio through another program like, for example, MATLAB. Is this possible ?. Currently, there is a way already to link MATLAB with HSDCPRO. I wonder if there is also a similar procedure to link MATLAB with Radar Studio? If it is possible, is there anyway that someone can give me a hint or just a starting point for this?. 

Thank you in advance for your response. 

  • Hi,

    The capabilities of controlling Radar Studio are described in the Radar Studio User's Guide.
    Matlab control is not mentioned.
    We are looking into the capabilities of the next release and will let you know.

    thank you
    cesar
  • Hi Santiago,

    It is indeed possible to control Radar Studio externally. I am checking internally about the exact procedure to follow and will get back to you shortly with this.

    Best Regards,
    Anand
  • Hi Santiago,

    Just a quick update on this. I am putting together some instructions on how to communicate with RadarStudio from Matlab and should be able to release this to you early next week.

    Best Regards,
    Anand
  • Hi Anand,

    Thank you so much for your help. I will be looking forward for your update on this.
  • Hi Santiago,

    First, I assume that you are able to capture the raw data using Lua Scripts/Commands from within RadarStudio itself.

    Now, for controlling RadarStudio from Matlab, this is certainly possible and the following section explains how. There is a .7z attachment to this post containing three files referenced below.

    Note that there is a small bug in the config file for Radar Studio v1.9.2.1 that currently prevents this. To fix this, you will need to replace the "Radar Studio.exe.config" file in "C:\ti\mmwave_dfp_01_00_00_01\rf_eval\radarstudio\RunTime" with the version in the attachment. This will be fixed in the next release of RadarStudio.

    Steps to control Radar Studio from Matlab:

    0) Update the "Radar Studio.exe.config" file and restart RadarStudio

    1) From RadarStudio's Lua Shell, call the RSTD.NetStart() command

    This starts a listening server on port 2777 by default.

    (you can also add this command to "C:\ti\mmwave_dfp_01_00_00_01\rf_eval\radarstudio\Scripts\Startup.lua" so that it is called automatically)

    2) There are two Matlab scripts in the attachment. You can modify the path to the RtttNetClientAPI.dll in Matlab_Interface_Example.m, and then call the Matlab_Interface_example from Matlab. This script demonstrates how to connect to RadarStudio from Matlab and allow Lua commands to be sent to RadarStudio. The script internally calls Init_RSTD_Connection.m to establish the connection to port 2777, and then displays a green message in the RadarStudio Output window.

    See lines 40-47 in Init_RSTD_Connection.m for an example of sending a single Lua Command. Basically, you construct the Lua command as a string in Matlab and pass it to the RtttNetClientAPI.RtttNetClient.SendCommand API. Also see commented lines 12-15 in RSTD_Interface_Example.m for an example on how to get RadarStudio to run an external Lua Script.

    Let me know if you have any further questions. Hope this helps.

    Best Regards,

    Anand

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/1023/RadarStudioMatlab.7z

  • Hi Santiago,

    I wanted to check if these instructions worked for you and if you require any more help on this topic.

    Best Regards,
    Anand
  • Hi Anand,

    I apologize for my late response. I was testing your suggested solution. I have not encountered a problem for now. I really appreciate your help and support.