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.
在文档User's Guide for mmWaveStudio中第23节Controlling mmWaveStudio from Matlab提到使用matlab发送lua命令控制雷达。
我仿照matlab代码编写了python代码,但是在执行向mmWaveStudio 发送命令的函数
Lua_String = 'WriteToLog("Running script from MATLAB\n", "green")'; ErrStatus = RtttNetClientAPI.RtttNetClient.SendCommand(Lua_String);
但是python中改函数的方法签名如下:
Int32 SendCommand(System.String, System.Object[] ByRef)
可以看出需要传入两个参数,请问这两个参数哪一个是lua命令,另一个参数又需要传什么?
ps: 我是使用的pythonnet库加载的dll
你好,
你的问题可以下面的论坛讨论类似:
We don't have any way to control mmWave Studio using Python.
from System import String, Object ByRef = Array[Object]("") ErrStatus = RtttNetClientAPI.RtttNetClient.SendCommand(String(Lua_String), ByRef)
RtttNetClientAPI.RtttNetClient.SendCommand(String lua_str, Object[]& res_arr, Int32 send_timeout, Int32 recv_timeout, RstdNetCmdID id)