so the solution looks like this. awesome
function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
.
.
.
ExportScript.displayAltitude(mainPanelDevice) --Altitude in Feet
.
.
.
end
function ExportScript.displayAltitude(mainPanelDevice) -- Altitude A4 ----------------------------------------------
local AltPlt = string.sub(string.format("%.1f", mainPanelDevice:get_argument_value(112)), 3, 3) .. string.sub(string.format("%.1f", mainPanelDevice:get_argument_value(262)), 3, 3) .. string.sub(string.format("%.1f", mainPanelDevice:get_argument_value(300)), 3, 3) .. "00"
ExportScript.Tools.SendData(52262, "Altitude\n(MSL)\n" .. AltPlt .. "\nFT") -- Return Altitude in FT Formatted like F-14 Servopneumatic Altimeter
end