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.

IWR1642BOOST: Radar Studio Automation using Matlab

Part Number: IWR1642BOOST

I want to automate the Radar Studio using Matlab. I have found the same topic in this thread, however I could not get the sample code from TI to work.
https://e2e.ti.com/support/sensor/mmwave_sensors/f/1023/t/671275?AWR1243BOOST-Radar-Studio-Automation


I have copied and replaced the "Radar Studio.exe.config" to "ti\mmwave_dfp_01_00_00_01\rf_eval\radarstudio\RunTime" directory. I have two issues with the example code:
- When opening LUA Shell in the Radar Studio and run "RSTD.NetStart()", the returned value is 0 (in the Matlab-Script says that the returned value should be 30000 when no error).
- When running "RSTD_Interface_Example.m" in Matlab, i got an error:" 'RtttNetClientAPI.dll' could not be found in the .NET Global Assembly Cache (GAC). "

How can I fix this issue ?

Thanks very much

Bien

  • Bien,

    We are looking into this question and will get back to you. This type of question does require a bit of digging.

    Regards,
    Kyle
  • Hi Bien,

    When running RSTD.NetStart() in the LUA Shell, the 0 return value is correct - this is what we expect. You should also see the following message in RadarStudio's Output window: "RstdNet: Port 2777: Listening.."

    The 30000 return value is what you would expect when calling the Init_RSTD_Connection() command in the RSTD_Interface_Example.m script.

    Could you please confirm that the DLL file in line 4 of RSTD_Interface_Example.m actually exists at that location in your installation? If not, could you update the path in line 4 to point to the correct location?

    Also, could you please confirm the exact version of RadarStudio that you are using? Is it from the mmwave_dfp_01_00_00_01 package, or do you have a different version?

    Best Regards,
    Anand
  • Hi Anand

    Sorry for the late reply.
    I have all of the 4 dll-files (RstdNet.dll, RtttNet.dll, RtttNetClientAPI.dll, RtttNetClientController.dll) in the same directory of RSTD_Interface_Example. (Do I also have to copy these .dll files to the directory of RadarStudio ?)

    I'm using the "mmwave_dfp_01_00_00_01" package.

    Thanks
    Bien
  • Hi Bien,

    The path to the dlls is hardcoded in line 4 of RSTD_Interface_Example.m - could you make sure this is pointing to the correct location?

    You do not need to copy the .dll files to the same location as the script - it may be better in fact to run the script from a different location instead.

    Best Regards,
    Anand
  • Hi Anand

    The dll path in RSTD_Interface_Example.m was adjusted to the current direction. The hard-coded path is commented out and replaced by the new path as showed belowed (dll files are already placed in Matlab directory).

       % RSTD_DLL_Path = 'C:\ti\mmwave_dfp_01_00_00_01\rf_eval\radarstudio\Clients\RtttNetClientController\RtttNetClientAPI.dll';

       RSTD_DLL_Path = 'RtttNetClientAPI.dll';

    There is another thing which I'm not sure if it cause the problem that is:

      -  I was using a Matlab-Server ,which is not the one installed on my computer, to run the  "RSTD_Interface_Example.m", but I don't think it makes the software not able to find the .dll

    Thanks Bien

  • Hi Bien,

    To keep it simple, would you be able to run with Matlab running locally on the same computer as RadarStudio?

    Best Regards,
    Anand
  • Hi Anand

    Yes, I also planed to run it with a local Matlab to test it. I'll check it.

    Thanks
    Bien
  • Hi

    I checked it again, and i seems like the problem is the directory path. When I use the absolute path instead of relativ, it works. Namely:
    RSTD_DLL_Path = 'D:\My_Project\RtttNetClientAPI.dll'; --->> working
    RSTD_DLL_Path = 'RtttNetClientAPI.dll'; --->> not working

    Thanks
  • Hi Bien,

    Thank you for confirming! This is useful information to know.

    Best Regards,
    Anand