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.

AWR6843AOPEVM: 如何修改lua脚本文件,控制天线发射的模式(一发四收,单发单收,三发四收等)

Part Number: AWR6843AOPEVM

您好,如题,我们想修改脚本文件:DataCaptureDemo_xWR.lua里的代码,来实现控制天线的发射模式,请问该如何修改呢?

我们所了解到的可能与天线模式相关的代码如下:

elseif(partId == 6843) then
if(ar1.ProfileConfig(0, 60.25, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 131072, 30) == 0) then
WriteToLog("ProfileConfig Success\n", "green")
else
WriteToLog("ProfileConfig failure\n", "red")
end
end

if (ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 0) == 0) then
WriteToLog("ChirpConfig Success\n", "green")
else
WriteToLog("ChirpConfig failure\n", "red")
end

if (ar1.EnableTestSource(1) == 0) then
WriteToLog("Enabling Test Source Success\n", "green")
else
WriteToLog("Enabling Test Source failure\n", "red")
end

if (ar1.FrameConfig(0, 0, 8, 128, 40, 0, 0, 1) == 0) then
WriteToLog("FrameConfig Success\n", "green")
else
WriteToLog("FrameConfig failure\n", "red")
end