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.

TSW1400EVM: MATLAB api error while using the radar studio

Part Number: TSW1400EVM

I am following the instruction of "mmWave Sensor Raw Data Capture Using the TSW1400 Board" to capture the raw data. Everything is good until I try to connect through RS232 operation. It turns out that radar studio could not find the post proc version(it is 0.0.0.0). I installed the MATLAB runtime provided by the slide and I do not have other matlab installed on my computer.

  • Hi,

    It appears that you are using a very old version of Radar Studio.

    Could you please let us know the device version (the "Device Status" field in Radar Studio)?

    Best Regards,
    Anand
  • Hi Anand,

    Thanks for the response. I am AWR1243BOOST and I have enclosed the Device Status field in my original post. My Radar Studio version is 0007004. We bought this board before May 2017.

  • By the way, I tried to use the new version of Radar studio. I got the same error when trying to connect. Also the new radar studio would crash.
  • I try to install the new radar studio and I got the same error. Also the new radar studio would crash
  • Hi,

    Can you please try with the RadarStudio version in DFP 00.09.01.06 available here:
    software-dl.ti.com/.../index_FDS.html

    Also, can you please paste a picture of the top side of the AWR1243 BOOST here? We want to try to identify the version of the board and device.

    Best Regards,
    Anand
  • Hi Anand,

    Thanks for your response. I tried the DFP 00.09.01.06 version and the problem is the same. The radarStudio could not find the postproc and the error is the same as the original post.

    Also I upload the picture for our board.

    Best, 

  • Hi,

    We cannot identify the chip revision from this photo as the markings are not clear. Could you post a screenshot from RadarStudio from DFP 00.09.01.06. Please post the complete screenshot for the Device Status section, and also the log file. You can get the log file by Right Clicking in the Output window and selecting "Show Log File" or "Open Log Folder".

    Best Regards,
    Anand
  • Hi  Anand,

    Thanks for the response. The log file contains the following content:

    GM: Constructor

    GM: Sun Jan 20 14:49:13 2019

    RSTD.Transmit("/Settings")

    [14:49:13]  

    [14:49:13]  ### Running Startup script: "C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\Scripts\Startup.lua" ###

    [14:49:14]  RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")

    [14:49:14]  RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")

    [14:49:14]  Scripter ignored: Attempt to UnBuild() again or before Build.

    [14:49:14]  RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_dfp_00_09_01_06\\rf_eval\\radarstudio\\Clients\\\\LabClient.dll")

    [14:49:14]  RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")

    [14:49:14]  RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")

    [14:49:14]  RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")

    [14:49:14]  RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")

    [14:49:14]  RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")

    [14:49:14]  RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_dfp_00_09_01_06\\rf_eval\\radarstudio\\RunTime\\SAL.dll")

    [14:49:14]  RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")

    [14:49:14]  RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")

    [14:49:14]  RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")

    [14:49:14]  RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")

    [14:49:14]  RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")

    [14:49:14]  RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")

    [14:49:14]  RSTD.Transmit("/")

    [14:49:14]  RSTD.SaveSettings(): Settings saved to "C:\Users\yfan12\AppData\Roaming\RSTD\config.xml"

    [14:49:14]  RSTD.Build()

    [14:49:14]  RSTD.SaveSettings(): Settings saved to "C:\Users\yfan12\AppData\Roaming\RSTD\config.xml"

    [14:49:14]  RSTD.Transmit("/")

    [14:49:14]  RSTD.AL_Build()

    [14:49:14]  RSTD.AL_LoadXml()

    [14:49:14]  RSTD.Transmit("/")

    [14:49:14]  RSTD.AL_Init()

    [14:49:14]  RSTD.Clients_Build()

    [14:49:14]  GM: Init

    [14:49:14]  GM: Loaded 'C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\Clients\\LabClient.dll'

    [14:49:14]  GM: 1 Guest (s) init

    [14:49:14]  GM: 1 Module(s) init

    [14:49:14]  GM: 2 Tab   (s) init

    [14:49:14]  RSTD.Client_LoadXml()

    [14:49:14]  [RadarAPI]: Error: Failed to create adc_data.bin file in PostProc path: "C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\PostProc\adc_data.bin".

    [14:49:14]  Got error: Access to the path 'C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\PostProc\adc_data.bin' is denied.

    [14:49:14]  [RadarAPI]: Error: Failed to create adc_data.bin file in PostProc path: "C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\PostProc\Temp_data.txt".

    [14:49:14]  Got error: Access to the path 'C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\PostProc\Temp_data.txt' is denied.

    [14:49:14]  [RadarAPI]: Starting Matlab Engine..

    [14:49:16]  [RadarAPI]: Error:

    [14:49:16]  

    [14:49:16]  ... MWMCR::EvaluateFunction error ...

    [14:49:16]  Invalid file identifier. Use fopen to generate a valid file identifier.

    [14:49:16]  Error in => Initialize_PostProcEngine.m at line 102.

    [14:49:16]  

    [14:49:16]  ... Matlab M-code Stack Trace ...

    [14:49:16]      at

    [14:49:16]  file C:\Users\yfan12\AppData\Local\Temp\yfan12\mcrCache8.5.1\Matlab1\MatlabPostPr\Initialize_PostProcEngine.m, name Initialize_PostProcEngine, line 102.

    [14:49:16]  

    [14:49:16]  

    [14:49:16]  Trace:

    [14:49:16]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)

    [14:49:16]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)

    [14:49:16]     at MatlabPostProcGui.MatlabPostProcGUIClass.Initialize_PostProcEngine(MWArray BaseFolder)

    [14:49:16]     at AR1xController.frmAR1Main.InitMatlabPostProcEngine(String PostProcesspath)

    [14:49:16]  [RadarAPI]: Error: Error occured in Matlab Initialization

    [14:49:16]  [RadarAPI]: Matlab Engine couldn't be Started..

    [14:49:20]  [RadarAPI]: ar1.LoadSettings('C:\Users\yfan12\AppData\Roaming\RSTD\ar1gui.ini')

    [14:49:20]  [RadarAPI]: Error:

    [14:49:20]  

    [14:49:20]  ... MWMCR::EvaluateFunction error ...

    [14:49:20]  Attempt to reference field of non-structure array.

    [14:49:20]  Error in => postProcVersion.m at line 3.

    [14:49:20]  

    [14:49:20]  ... Matlab M-code Stack Trace ...

    [14:49:20]      at

    [14:49:20]  file C:\Users\yfan12\AppData\Local\Temp\yfan12\mcrCache8.5.1\Matlab1\MatlabPostPr\postProcVersion.m, name postProcVersion, line 3.

    [14:49:20]  

    [14:49:20]  

    [14:49:20]  Trace:

    [14:49:20]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)

    [14:49:20]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, MWArray[] argsIn)

    [14:49:20]     at MatlabPostProcGui.MatlabPostProcGUIClass.postProcVersion()

    [14:49:20]     at AR1xController.ScriptOps.getMatlabPostProcVersion()

    [14:49:20]  TESTING = false

    [14:49:20]  

    [14:49:20]  ***Script completed successfully.***

    [14:49:23]  [RadarAPI]: Opening Gpio Control Port()

    [14:49:23]  [RadarAPI]: Status: Passed

    [14:49:24]  [RadarAPI]: Opening Board Control Port()

    [14:49:24]  [RadarAPI]: Status: Passed

    [14:49:25]  [RadarAPI]: ar1.FullReset()

    [14:49:25]  [RadarAPI]: Status: Passed

    [14:49:25]  [RadarAPI]: Closing Board Control Port()

    [14:49:25]  [RadarAPI]: Status: Passed

    [14:49:25]  [RadarAPI]: Closing Gpio Control Port()

    [14:49:25]  [RadarAPI]: Status: Passed

    [14:49:25]  [RadarAPI]: ar1.SOPControl(2)

    [14:49:25]  [RadarAPI]: Status: Passed

    [14:49:26]  [RadarAPI]: ar1.Connect(24,115200,1000)

    [14:49:27]  [RadarAPI]: ar1.Calling_IsConnected()

    [14:49:30]  [RadarAPI]: Error:

    [14:49:30]  

    [14:49:30]  ... MWMCR::EvaluateFunction error ...

    [14:49:30]  Invalid file identifier. Use fopen to generate a valid file identifier.

    [14:49:30]  Error in => select_chip_version.m at line 2.

    [14:49:30]  

    [14:49:30]  ... Matlab M-code Stack Trace ...

    [14:49:30]      at

    [14:49:30]  file C:\Users\yfan12\AppData\Local\Temp\yfan12\mcrCache8.5.1\Matlab1\Logging\log_status.m, name log_status, line 25.

    [14:49:30]      at

    [14:49:30]  file C:\Users\yfan12\AppData\Local\Temp\yfan12\mcrCache8.5.1\Matlab1\MatlabPostPr\select_chip_version.m, name select_chip_version, line 2.

    [14:49:30]  

    [14:49:30]  

    [14:49:30]  Trace:

    [14:49:30]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)

    [14:49:30]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)

    [14:49:30]     at MatlabPostProcGui.MatlabPostProcGUIClass.select_chip_version(MWArray chip_name)

    [14:49:30]     at AR1xController.ScriptOps.SelectChipVersion(String chipName)

    [14:49:30]  [RadarAPI]: ar1.SelectChipVersion("XWR1243")

    [14:49:30]  [RadarAPI]: Status: Failed

    [14:49:31]  [RadarAPI]: Error:

    [14:49:31]  

    [14:49:31]  ... MWMCR::EvaluateFunction error ...

    [14:49:31]  Invalid file identifier. Use fopen to generate a valid file identifier.

    [14:49:31]  Error in => select_chip_version.m at line 2.

    [14:49:31]  

    [14:49:31]  ... Matlab M-code Stack Trace ...

    [14:49:31]      at

    [14:49:31]  file C:\Users\yfan12\AppData\Local\Temp\yfan12\mcrCache8.5.1\Matlab1\Logging\log_status.m, name log_status, line 25.

    [14:49:31]      at

    [14:49:31]  file C:\Users\yfan12\AppData\Local\Temp\yfan12\mcrCache8.5.1\Matlab1\MatlabPostPr\select_chip_version.m, name select_chip_version, line 2.

    [14:49:31]  

    [14:49:31]  

    [14:49:31]  Trace:

    [14:49:31]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)

    [14:49:31]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)

    [14:49:31]     at MatlabPostProcGui.MatlabPostProcGUIClass.select_chip_version(MWArray chip_name)

    [14:49:31]     at AR1xController.ScriptOps.SelectChipVersion(String chipName)

    [14:49:31]  [RadarAPI]: ar1.SelectChipVersion("XWR1243")

    [14:49:31]  [RadarAPI]: Status: Failed

    [14:49:31]  [RadarAPI]: ar1.SaveSettings('C:\Users\yfan12\AppData\Roaming\RSTD\ar1gui.ini')

    [14:52:13]  RSTD.ShowLogFile()

    Also, I enclosed the information for RadarStudio

  • Hi,

    It looks like this line indicates a problem:

    [14:49:14] [RadarAPI]: Error: Failed to create adc_data.bin file in PostProc path: "C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\PostProc\adc_data.bin".

    Can you try running RadarStudio as administrator? (I think it may have been installed as administrator and the program may not have write permissions to that directory).

    Best Regards,
    Anand