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
Shine:
请问您是想知道ar1命令每个参数的具体含义吗?
,
Mi He:
对,有脚本文件的说明吗?
,
Shine:
到mmwave studio界面的菜单View->LuaShell,然后输入要查找的命令如:help ar1.ProfileConfig
,
Mi He:
好的,谢谢,麻烦您回答一下我的另一个问题可以吗?AWR6843AOPEVM: 运行DataCaptureDemo_xWR.lua脚本时报错 – 传感器论坛 – 传感器 – E2E 设计支持 (ti.com)
,
Shine:
已回复。