Hello
I can see the chaff and flares below.
I don't understand lua well, so there may be a problem.
----------------------------------------------------------
local CMDS_Amount = ExportScript.Tools.getListIndicatorValue(16)
if CMDS_Amount ~= nil and CMDS_Amount.CMDS_CH_Amount ~= nil then
CH_Amount = CMDS_Amount.CMDS_CH_Amount
else
if CMDS_Amount == nil then
CH_Amount = ""
CMDS_Amount = "CMDS_Amount"
end
if CMDS_Amount.CMDS_CH_Amount == nil then
CH_Amount = ""
else
CH_Amount = CMDS_Amount.CMDS_CH_Amount
end
end
if CMDS_Amount ~= nil and CMDS_Amount.CMDS_FL_Amount ~= nil then
FL_Amount = CMDS_Amount.CMDS_FL_Amount
else
if CMDS_Amount == nil then
Fl_Amount = ""
CMDS_Amount = "CMDS_Amount"
end
if CMDS_Amount.CMDS_FL_Amount == nil then
FL_Amount = ""
else
FL_Amount = CMDS_Amount.CMDS_FL_Amount
end
end
ExportScript.Tools.SendData(2000, string.format("%-2s",CH_Amount)) --
ExportScript.Tools.SendData(2001, string.format("%-2s",FL_Amount)) --
----------------------------------------------------------------------------------------