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

December 07, 2025, 06:26:14 AM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
876 Guests, 0 Users
Members
Stats
  • Total Posts: 59,774
  • Total Topics: 7,891
  • Online today: 1,039
  • Online ever: 1,676
  • (December 04, 2025, 03:52:20 AM)
Users Online
Users: 0
Guests: 876
Total: 876

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