vJaBoG32_Siddharta Posted February 3, 2020 Share Posted February 3, 2020 Hello all, i'd like to export the DCS Engine Values: LoGetEngineInfo() -- (args - 0 ,results = table) engineinfo = { RPM = {left, right},(%) Temperature = { left, right}, (Celcium degrees) HydraulicPressure = {left ,right},kg per square centimeter fuel -- fuel quantity kg } But none of these values seem to work. Or did a make something wrong? ... function LuaExportAfterNextFrame() local engine = LoGetEngineInfo(); socket.try(c:send(string.format("RPM = %.4f, \n", engine.RPM)) end end If no error...is the another way to get these values e.g. via exporting instrument values? If yes, how? THX for any help!!! Link to comment Share on other sites More sharing options...
Capt Zeen Posted February 4, 2020 Share Posted February 4, 2020 use engine.RPM.left and try Capt_Zeen_HELIOS PROFILES_WEBSITE Capt_Zeen_Youtube Channel Link to comment Share on other sites More sharing options...
vJaBoG32_Siddharta Posted February 7, 2020 Author Share Posted February 7, 2020 (edited) Thx but doa'nt work, at least at most aircrafts. I'll noted that simshaker uses the Instrumentpanel for this: get_argument_value e.g. local RPM = MainPanel:get_argument_value(50) * 100 But the responsible value number differs for every aircraft. May someone know how i can figure out the right panel value number? EDIT: found it. Values can be found are under Your Drive:\DCS World\Mods\aircraft\*Aircraft*\Cockpit\Scripts\mainpanel_init.lua Edited February 7, 2020 by vJaBoG32_Siddharta Link to comment Share on other sites More sharing options...
Capt Zeen Posted February 7, 2020 Share Posted February 7, 2020 Yes, the LoGetEngineInfo() gives information of FC airplanes. For other airplanes you need to use the get argument functions. And yes, every airplane got his own values. You can check in the file mainpanel_init.lua, usually over there you found the data you need. For example: in the KA50 D:\DCS World OpenBeta\Mods\aircraft\Ka-50\Cockpit\Scripts\mainpanel_init.lua --------------------------------------------------- -- Rotor RPM RotorRPM = CreateGauge() RotorRPM.arg_number = 52 RotorRPM.input = {0.0, 110.0} RotorRPM.output = {0.0, 1.0} RotorRPM.controller = controllers.RotorRPM So to get the value you need to do: local MainPanel = GetDevice(0) rotorRPM= MainPanel:get_argument_value(52) .. Capt_Zeen_HELIOS PROFILES_WEBSITE Capt_Zeen_Youtube Channel Link to comment Share on other sites More sharing options...
Bergison Posted April 22, 2020 Share Posted April 22, 2020 Any idea where to find this information for the F-18C? In its mainpanel_init there are only arguments for left and right throttle position (e.g. LeftThrottle.arg_number = 104), but not for engine RPM. Any help with this would be greatly apprechiated. I need the Hornet engine RPM for refining the bass-shaker output on the Motion Integrated G-Seat. Already wrote to ED regarding this but received no reply. my simpit website: bergisons.simpit.info Link to comment Share on other sites More sharing options...
mavness Posted July 8, 2020 Share Posted July 8, 2020 Any idea where to find this information for the F-18C? In its mainpanel_init there are only arguments for left and right throttle position (e.g. LeftThrottle.arg_number = 104), but not for engine RPM. Any help with this would be greatly apprechiated. I need the Hornet engine RPM for refining the bass-shaker output on the Motion Integrated G-Seat. Already wrote to ED regarding this but received no reply. Did you ever figure this out? I am looking to get the same data, for the exact same reason (bass shaker, not the g seat). Thanks mate! Link to comment Share on other sites More sharing options...
winghunter Posted January 11, 2022 Share Posted January 11, 2022 -- 104 = Left Engine Throttle local leftThrottle = MainPanel:get_argument_value(104) -- 105 = Right Engine Throttle local rightThrottle = MainPanel:get_argument_value(105) DCS Web Editor - New 3D Mission Editor for DCS that runs in your browser DCS Web Viewer free browser based mission planner / viewer 4090 RTX, 13700KF, water cooled Link to comment Share on other sites More sharing options...
Recommended Posts