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.
Hello.
I encountered this error while trying to connect AWR1642BOOST to mmWaveStudio 2.1.1.0.
Under RadarAPI, Connection tab:
After clicking "Connect (2)" under RS232 Operations with the COM Port as COM7 and Baud Rate as 921600, the following error appears:
[17:30:16] [RadarAPI]: Error:
[17:30:16]
[17:30:16] ... MWMCR::EvaluateFunction error ...
[17:30:16] Undefined function 'select_chip_version' for input arguments of type 'char'..
[17:30:16]
[17:30:16]
[17:30:16] Trace:
[17:30:16] at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)
[17:30:16] at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)
[17:30:16] at MatlabPostProcGui.MatlabPostProcGUIClass.select_chip_version(MWArray chip_name)
[17:30:16] at AR1xController.ScriptOps.SelectChipVersion(String chipName)
[17:30:19] [RadarAPI]: Error:
[17:30:19]
[17:30:19] ... MWMCR::EvaluateFunction error ...
[17:30:19] Undefined function 'select_chip_version' for input arguments of type 'char'..
[17:30:19]
[17:30:19]
[17:30:19] Trace:
[17:30:19] at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)
[17:30:19] at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)
[17:30:19] at MatlabPostProcGui.MatlabPostProcGUIClass.select_chip_version(MWArray chip_name)
[17:30:19] at AR1xController.ScriptOps.SelectChipVersion(String chipName)
[17:30:19] [RadarAPI]: ar1.deviceVariantSelection("XWR1642")
[17:30:19] [RadarAPI]: Status: Passed
[17:30:19] [RadarAPI]: ar1.frequencyBandSelection("77G")
[17:30:19] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
[17:30:19] [RadarAPI]: Status: Failed
[17:30:19] [RadarAPI]: ar1.SaveSettings('C:\Users\AdXen\AppData\Roaming\RSTD\ar1gui.ini')
I have reflashed the AWR1642BOOST, reinstalled mmwave studio, installed other versions of mmwave studio, checked port connections on device manager. The radar also works on mmwave demo visualizer after I change the SOP.
Connecting to the radar this way was working a few days ago. I hope i can get some help here.
Thank you.
Here's the whole log file if needed (including the error above):
GM: Constructor
GM: Tue Nov 08 17:35:04 2022
RSTD.Transmit("/Settings")
[17:35:04]
[17:35:04] ### Running Startup script: "C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts\Startup.lua" ###
[17:35:04] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
[17:35:04] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
[17:35:04] Scripter ignored: Attempt to UnBuild() again or before Build.
[17:35:04] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
[17:35:04] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
[17:35:04] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
[17:35:04] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
[17:35:04] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
[17:35:04] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
[17:35:04] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\RunTime\\SAL.dll")
[17:35:04] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
[17:35:04] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
[17:35:04] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
[17:35:04] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
[17:35:04] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
[17:35:04] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
[17:35:04] RSTD.Transmit("/")
[17:35:04] RSTD.SaveSettings(): Settings saved to "C:\Users\AdXen\AppData\Roaming\RSTD\config.xml"
[17:35:04] RSTD.Build()
[17:35:04] RSTD.SaveSettings(): Settings saved to "C:\Users\AdXen\AppData\Roaming\RSTD\config.xml"
[17:35:04] RSTD.Transmit("/")
[17:35:04] RSTD.AL_Build()
[17:35:04] RSTD.AL_LoadXml()
[17:35:04] RSTD.Transmit("/")
[17:35:04] RSTD.AL_Init()
[17:35:04] RSTD.Clients_Build()
[17:35:04] GM: Init
[17:35:04] GM: Loaded 'C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Clients\\LabClient.dll'
[17:35:04] GM: 1 Guest (s) init
[17:35:04] GM: 1 Module(s) init
[17:35:04] GM: 2 Tab (s) init
[17:35:04] RSTD.Client_LoadXml()
[17:35:04] [RadarAPI]: ar1.selectRadarMode(0)
[17:35:04] [RadarAPI]: Status: Passed
[17:35:04] Matlab Runtime Engine is installed
[17:35:04] [RadarAPI]: Starting Matlab Engine..
[17:35:09] [RadarAPI]: Matlab Engine Started!
[17:35:11] [RadarAPI]: ar1.selectCascadeMode(0)
[17:35:11] [RadarAPI]: Status: Passed
[17:35:11] [RadarAPI]: ar1.LoadSettings('C:\Users\AdXen\AppData\Roaming\RSTD\ar1gui.ini')
[17:35:11] TESTING = false
[17:35:11] RstdNet: Port 2777: Listening..
[17:35:11]
[17:35:11] ***Script completed successfully.***
[17:35:25] [RadarAPI]: Opening Gpio Control Port()
[17:35:25] [RadarAPI]: Status: Passed
[17:35:26] [RadarAPI]: Opening Board Control Port()
[17:35:26] [RadarAPI]: Status: Passed
[17:35:27] [RadarAPI]: ar1.FullReset()
[17:35:27] [RadarAPI]: Status: Passed
[17:35:28] [RadarAPI]: Closing Board Control Port()
[17:35:28] [RadarAPI]: Status: Passed
[17:35:28] [RadarAPI]: Closing Gpio Control Port()
[17:35:28] [RadarAPI]: Status: Passed
[17:35:28] [RadarAPI]: ar1.SOPControl(2)
[17:35:28] [RadarAPI]: Status: Passed
[17:35:30] [RadarAPI]: ar1.Connect(7,921600,1000)
[17:35:33] [RadarAPI]: Warning: Connected with baudrate 115200
[17:35:34] [RadarAPI]: Warning: Disconnected existing BaudRate
[17:35:34] [RadarAPI]: Warning: Trying to connect with baudrate 921600
[17:35:35] [RadarAPI]: ar1.Calling_IsConnected()
[17:35:39] [RadarAPI]: Error:
[17:35:39]
[17:35:39] ... MWMCR::EvaluateFunction error ...
[17:35:39] Undefined function 'select_chip_version' for input arguments of type 'char'..
[17:35:39]
[17:35:39]
[17:35:39] Trace:
[17:35:39] at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)
[17:35:39] at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)
[17:35:39] at MatlabPostProcGui.MatlabPostProcGUIClass.select_chip_version(MWArray chip_name)
[17:35:39] at AR1xController.ScriptOps.SelectChipVersion(String chipName)
[17:35:40] [RadarAPI]: Error:
[17:35:40]
[17:35:40] ... MWMCR::EvaluateFunction error ...
[17:35:40] Undefined function 'select_chip_version' for input arguments of type 'char'..
[17:35:40]
[17:35:40]
[17:35:40] Trace:
[17:35:40] at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)
[17:35:40] at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)
[17:35:40] at MatlabPostProcGui.MatlabPostProcGUIClass.select_chip_version(MWArray chip_name)
[17:35:40] at AR1xController.ScriptOps.SelectChipVersion(String chipName)
[17:35:40] [RadarAPI]: ar1.deviceVariantSelection("XWR1642")
[17:35:40] [RadarAPI]: Status: Passed
[17:35:40] [RadarAPI]: ar1.frequencyBandSelection("77G")
[17:35:40] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
[17:35:40] [RadarAPI]: Status: Failed
[17:35:40] Device Status : XWR1642/ASIL-B/SOP:2/ES:2
[17:35:40] [RadarAPI]: ar1.SaveSettings('C:\Users\AdXen\AppData\Roaming\RSTD\ar1gui.ini')
Found the solution in this thread:
This solution solved the issue:
"
Below is the reply from the designer after looking at your translated error message.
The Matlab runtime uses standard temporary location (tmp directory) to store scripts. (like something below)
"C:\Users\wlabuser\AppData\Local\Temp\wlabuser\mcrCache8.5.1\Matlab0\RadarLinkAPIImpl\MatlabPostProcImpl_PowerOff.m"
Please refer this link
I guess it is better to delete the mcrCache8.5.1 folder in the above path and try again. Or try the solution suggested in the above link.
"