Welcome to Cockpitbuilders.com. Please login or sign up.

March 10, 2026, 02:25:47 AM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
886 Guests, 0 Users
Members
Stats
  • Total Posts: 59,807
  • Total Topics: 7,899
  • Online today: 1,287
  • Online ever: 2,919
  • (March 07, 2026, 06:00:15 AM)
Users Online
Users: 0
Guests: 886
Total: 886

COUNTDOWN TO WF2024


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

Polling for EFIS status from PMDG in FSX

Started by maciekish, March 08, 2014, 03:32:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maciekish

Hi,
I'm writing a C# application to interface between the 737 NGX and my Teensy hardware. While working on the EFIS panel on the glareshield i was unable to find the correct reference to read the state of the WXR, STA, WPT etc buttons.

I can toggle them using the following method:

NativeMethod.RaisePMDGEvent(SDK.PMDGEvents.EVT_EFIS_CPT_WXR, (efis_wxr.Checked ? 0 : 1));
efis_wxr.Checked = !efis_wxr.Checked;


efis_wxr is just a local RadioButton used to indicate the state in the C# app.

However if i press this button in the simulator itself, my LED on the teensy will obviously not update.

Is it possible to query the PMDG SDK for this information or am i SOL?

I can read the CMD A indicator from the NGX using this code as a reference:

pmdgData = NativeMethod.GetPMDGData();
mcp_cmd_a.Checked = (pmdgData.MCP_annunCMD_A == 1 ? true : false);


Bonus question: Where is the SDK for the 747?

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate