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: awr2243

Part Number: DCA1000EVM
Other Parts Discussed in Thread: AWR2243

Hello,

I am using awr2243 with DCA1000, mmWave Studio version mmwave_studio_03_00_00_14.

I am trying to control mmWavestudio from MATLAB as post processing is also being handled in MATLAB, to control all from same software.

I am able to run mmWavestudio and lua scripts from command window and also send some lua commands from MATLAB to mmWavestudio to trigger the frame etc.

Whenever, I run the command 'system('mmWaveStudio.exe /lua .\..\Scripts\myLuaScript.lua &');'  which is essentially CMD command to run mmWavestudio but in MATLAB, for some reason, mmWavestudio throws some irrelevant errors sometimes like not able to detect device version etc. where as other times it would not be able to upload MSS FW , mostly will stop and no response. And if I power cycle the board these issues will resolved, at least for the first run after power cycle. I tried putting delays between lua commands but it does not solve the problem.

Therefore, I thought, maybe if I can first run the mmWavestudio without running any lua script first, and then once the mmWavestudio is up and running I can call some lua script from MATLAB and hopefully avoid these errors. 

However, I do not know how to call a lua script in MATLAB. Basically imitate the mmWave Studio "run" button functionality in MATLAB.

I hope you could help me with this.

Regards

  • Hello,

    You can check the examples in the C:\ti\mmwave_studio_03_00_00_14\mmWaveStudio\MatlabExamples\4chip_cascade_TxBF_example\RSTD folder.

    We have provided some examples using the RtttNetClientAPI.RtttNetClient.SendCommand(Lua_String); command. However, this assumes you have mmwave studio open on the same PC with the connection established using RSTD.NetStart().

    Regards,

    Adrian 

  • Hi,

    Yes, I already tried this and it works just fine. However, only one command can be sent at a time this way, and all commands must be defined. What I want to do is run a full lua script instead of defining all the commands in MATLAB and sending them one by one.

    Is there a way to do it this way?

    Regards

  • Hello,

    I don't think there is any way to do this. Studio has its own built in lua shell with all of the function definitions for the various mmwavelink APIs which are defined in the AR1xController.dll. We do not have anyway to access these function definitions from MATLAB. 

    Regards,

    Adrian

  • Hi,

    I understand. Thank you for your reply nevertheless.

    Regards