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: Matlab engine error while initializing mmwave studio

Part Number: DCA1000EVM
Other Parts Discussed in Thread: IWRL6432BOOST

Tool/software:

Hello everyone.

I am facing some problems to initialize the mmWave Studio to use DCA1000EVM with IWRL6432BOOST.

Setup:

  • DCA1000EVM
  • IWRL6432BOOST
  • Windows 10 PC with Intel I219-LM ethernet card
  • mmWave Studio 4.1.0.6
  • mmWave low-power SDK - 05.05.00.02
  • Radar Toolbox - 2.20.00.05
  • XDS Emulation Software Package v9.2.0
  • MATLAB Runtime Engine v8.5.1

Problem:

When starting mmWave Studio, MATLAB tries to launch but returns the following error (it is in Portuguese, but it says that the index is out of range):

[15:38:34] O índice estava fora dos limites da matriz., em AR1xController.API.getMatlabPostProcVersion()
[15:38:35] [RadarAPI]: mws.LoadSettings('C:\Users\AdmPDI\AppData\Roaming\RSTD\ar1gui.ini')
[15:38:35] [RadarAPI]: Error: O índice estava fora dos limites da matriz.
[15:38:35] Trace:
[15:38:35] em AR1xController.ScriptOps.getMatlabPostProcVersion()
[15:38:35] TESTING = false

I searched the forum and saw that many others have faced the same issue. I tried every "solution," but none worked. I am sure that everything is installed as mentioned in the manual. The MATLAB version is 8.5.1 (32-bit), the firewall is disabled, the switch setup on the board is correct, and all other software versions are appropriate.

I successfully ran it on another PC, but with Windows 11 and other ETH adapter. In some threads, users conclude that Windows 10 or the adapter is the problem, but there is no mention of this in the manuals or other official documentation. With this, I have some questions:

  • Is there a limitation with using Windows 10?
  • Is there a workaround to make it work on Windows 10?
  • Is there a limitation with my ethernet adapter?

Complete mmWave Studio log:

GM: Constructor
GM: Mon Sep 09 15:38:28 2024
RSTD.SaveSettings(): Settings saved to "C:\Users\AdmPDI\AppData\Roaming\RSTD\config.xml"
RSTD.Transmit("/Settings")

### Running Startup script: "C:\ti\mmwave_studio_04_01_00_06\mmWaveStudio\Scripts\Startup.lua" ###
RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
[09/09 15:38:29] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
[15:38:29] Scripter ignored: Attempt to UnBuild() again or before Build.
[15:38:29] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_04_01_00_06\\mmWaveStudio\\Clients\\\\LabClient.dll")
[15:38:29] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
[15:38:29] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
[15:38:29] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
[15:38:29] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
[15:38:29] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
[15:38:29] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_04_01_00_06\\mmWaveStudio\\RunTime\\SAL.dll")
[15:38:29] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
[15:38:29] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
[15:38:29] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
[15:38:29] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
[15:38:29] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
[15:38:29] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
[15:38:29] RSTD.Transmit("/")
[15:38:29] RSTD.SaveSettings(): Settings saved to "C:\Users\AdmPDI\AppData\Roaming\RSTD\config.xml"
[15:38:29] RSTD.Build()
[15:38:29] RSTD.SaveSettings(): Settings saved to "C:\Users\AdmPDI\AppData\Roaming\RSTD\config.xml"
[15:38:29] RSTD.Transmit("/")
[15:38:29] RSTD.AL_Build()
[15:38:29] RSTD.AL_LoadXml()
[15:38:29] RSTD.Transmit("/")
[15:38:29] RSTD.AL_Init()
[15:38:29] RSTD.Clients_Build()
[15:38:29] GM: Init
[15:38:29] GM: Loaded 'C:\ti\mmwave_studio_04_01_00_06\mmWaveStudio\Clients\\LabClient.dll'
[15:38:29] GM: 1 Guest (s) init
[15:38:29] GM: 1 Module(s) init
[15:38:29] GM: 2 Tab (s) init
[15:38:29] RSTD.Client_LoadXml()
[15:38:29] xw_status = mws.GuiVersion()
[15:38:29] --GuiVersion = 4.1.0.6
[15:38:29] Matlab Runtime Engine is installed
[15:38:29] [RadarAPI]: Starting Matlab Engine..
[15:38:34] [RadarAPI]: Matlab Engine Started!
[15:38:34] xw_status = mws.RadarlinkVersion()
[15:38:34] --RadarlinkVersion = 1.0.1.3(11/7/22)
[15:38:34] xw_status = mws.StudiolinkVersion()
[15:38:34] --StudiolinkVersion = 1.1.0.2(8/2/23)
[15:38:34] xw_status = mws.GuiVersion()
[15:38:34] --GuiVersion = 4.1.0.6
[15:38:34] s_version = mws.GetPostProcVersion()
[15:38:34] O índice estava fora dos limites da matriz., em AR1xController.API.getMatlabPostProcVersion()
[15:38:35] [RadarAPI]: mws.LoadSettings('C:\Users\AdmPDI\AppData\Roaming\RSTD\ar1gui.ini')
[15:38:35] [RadarAPI]: Error: O índice estava fora dos limites da matriz.
[15:38:35] Trace:
[15:38:35] em AR1xController.ScriptOps.getMatlabPostProcVersion()
[15:38:35] TESTING = false
[15:38:35] xw_status, deviceMapInfo = mws.getFtdiDeviceInfo()
[15:38:35] DeviceIndex:0; SerialNumber:FT8E9IGI; Description:AR-DevPack-EVM-012
[15:38:35] RstdNet: Port 2777: Listening..
[15:38:35] --xw_status = 0
[15:38:35]
[15:38:35] ***Script completed successfully.***
[15:38:35] --(getNumDevices): xw_return = 0; numFtdiDevices = 1

  • Hi

    Thanks for your query. Please allow us a couple of days to respond.

    Regards

  • Hello,

    Usually its the other way around, as Windows 10 has historically had less issues than Windows 11. It definitely can be your Ethernet Adapter as a gigabit ethernet adapter is heavily recommended to avoid any issues. Does the Windows 11 computer use a Portuguese language pack as well? We have found issues with mmWaveStudio when using non-English language packs that aren't UTF-8 format

    Best Regards,

    Pedrhom

  • Hello Pedrhom.

    We will test on another machine that contains the same network adapter of the working PC. I will let you know if this behavior repeats in this new machine.

    About your second question, yes, both use the Portuguese language.

    Best Regards,

    Arnhold

  • Hello

    Just an update.

    As I mentioned, I got an identical computer to the one that I had working, and unfortunately the issue persists. I double-checked all the requirements, and both PCs are identical, but one works as expected and the other one does not.

    Something that I noticed is that I don't need the board to be plugged in to see the software initializing correctly. On the working PC, I don't get the getMatlabPostProcVersion() error, even with the board disconnected (Ethernet and USBs), so this means that the error is something with the software and not related to the board. My suspicion is that some other requirement is needed—some Microsoft plugin or framework that I had, by luck, installed on the working PC. Can you please analyze this possibility? If you have any ideas or tests that you recommend, please tell me. I need this software working on more than one PC to be able to develop my project.

    Best Regards,

    Felipe Arnhold

  • Hello Felipe,

    The error is strange, as you have noted, it has nothing to do with the hardware and it has to do with exclusively MATLAB runtime.

    If you right click the mmWaveStudio.exe, go to properties, and set compatibility for Windows 7 does it change anything?

    Have you also tried installing BOTH versions of the 8.5.1 MATLAB Runtime? 32bit and 64bit?

    Best Regards,

    Pedrhom

  • Hello Pedrhom.

    f you right click the mmWaveStudio.exe, go to properties, and set compatibility for Windows 7 does it change anything?

    No success using the compatibility mode. The result is the same.

    Have you also tried installing BOTH versions of the 8.5.1 MATLAB Runtime? 32bit and 64bit?

    I just installed the 32 bits as mentioned by the user manual. I will also try to install the 64 bit.

    I also installed every other component (Visual C++, .NET framework, .NET core, Windows SDK, Visual Studio Tools, etc) that I have in the working PC with no success.

    Best Regards,

    Felipe Arnhold