we can control mmWaveStudio by passing lua commands through MATLAB. is there a way we can pass values back to matlab from mmWaveStudio eg function returns?
Thank you,
Badeea
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.
we can control mmWaveStudio by passing lua commands through MATLAB. is there a way we can pass values back to matlab from mmWaveStudio eg function returns?
Thank you,
Badeea
HI, Badeea:
I am not aware of this feature. Can you point me to how to passing lua commands through MATLAB?
Best,
Zigang
Hello Zigang,
I am referring to the RSTD matlab interface described in section 22 page 71 of the mmWaveStudio user guide.
Thank you,
Badeea
Hi, Badeea:
In the example provides in the users guide ( listed below), "ErrStatus" is the value returns back from the running the lua script. Is this what you are looking for?
%Example Lua Command
strFilename = 'C:\\ti\\mmwave_studio_01_00_00_01\\mmWaveStudio\\Scripts\\Example_script_AllDevices.lua';
Lua_String = sprintf('dofile("%s")',strFilename);
ErrStatus =RtttNetClientAPI.RtttNetClient.SendCommand(Lua_String);
Best,
Zigang
Hello Zigang,
This is the the return of the API function I send to mmWaveStudio, it's just to tell if the command was sent successfully or not.
Regards,
Badeea
Hi, Badeea:
What kind of return you want to add to the function call?
Best,
Zigang
Hi Zigang,
Say for example i send the API function ar1.BpmConfig_mult and it did not execute successfully, the function returns -1. If i send the command through the RSTD MATLAB interface the ErrStatus will be 30000 (success) as in i sent the command successfully. The return i am looking to get back to matlab is the -1.
Thank you,
Badeea
Now, I understand your question. I will forward your question to our expert.
Best,
Zigang
Here is the answer I got from design team:
I don’t think it is possible to get the pass/fail condition of the LUA API. It only returns the pass/fail criteria between the communication interface of MATLAB and mmWaveStudio.
I would strongly suggest to
Best,
Zigang
Hello Zigang,
Thank you for the reply. I understand. What i did is write the return value in a txt file then read it in matlab. I was hoping there was a cleaner solution. Thanks anyway!
Badeea