Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Engine data simulation variables

Featured Replies

Hello

 

I am trying to read the engine data out of the PMDG 737 NGX aircraft via SimConnect. The application is running, I am reading the data using the following variables:

 

simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG N1:1", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);

simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG N2:1", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG CORRECTED FF:1", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG MAX TORQUE PERCENT:1", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG PRESSURE RATIO:1", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG JET THRUST:1", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG FUEL FLOW PPH:1", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG N1:2", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG N2:2", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG CORRECTED FF:2", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG MAX TORQUE PERCENT:2", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG PRESSURE RATIO:2", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG JET THRUST:2", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simConnect.AddToDataDefinition(DEFINITIONS.EngineData, "TURB ENG FUEL FLOW PPH:2", "Percent", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
 
Actually I am particularly interested in the fuel flow data. the figures I get from these variables do not match the fuel flow figure displayed on the PMDG engine display. Also the figure for TURB ENG CORRECTED FF:1 and TURB ENG CORRECTED FF:2 are much larger than the values read from TURB ENG FUEL FLOW PPH:1 and TURB ENG FUEL FLOW PPH:2 (e.g. FF PPH = 12.95, FF corrected = 218.92). The FF displayed on the engine display is 0.69, the value I get from the simvar is 12.72. I tried to find out if there is a kind of factor or function which relates these values, but did not succeed so far. I also already searched in the offset lists and PMDG SDK files, but there are no offsets or variables available.
Does anybody know of some coefficient, function or something else I can use to get the values displayed in the 737 engine display? 
 
Thanks a lot
Peter
  • Commercial Member

Careful with your data types and units.

 

Documentation says, that the correct unit for "TURB ENG FUEL FLOW PPH:x" is "Pounds per Hour" (and not "Percent") so that is the one I would use. Using different units may force the API to do some sort of conversion, which might not deliver what you expect.

 

Furthermore, be aware of the data types. If you get funny values with float or double, try if the simulator variable prefers to return integers. For example I had "Percent" usually work better with long = INT64 variables - if the variable actually returns a percent value, like for example the throttle lever position or combustion.

LORBY-SI

  • Author

Hi Oliver

 

Thank you very much for your answer, much appreciated. Perhaps it could be some kind of type issue, I will make a few tests using other datatypes and post the result here.

 

Cheers

Peter

  • Author

Part of the problem could be solved after changing the units from "Percent" to "Pounds per hour", as Oliver wrote. After this change the fuel flow figures are correct for all aircraft I tested, except the PMDG 737 (I have not checked the 777 yet). So there seems to be some kind of factor or function used by PMDG to get the FF figures displayed on the 737 engine displays.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.