Sign in to follow this  
Gurvan

SimConnect SDK NGX + P3D V4 basic example

Recommended Posts

Hello everyone!

Has anyone of you managed to run successfully the "PMDG_NGX_ConnectionTest.cpp" example in P3D v4 from the SDK folder?

On my side, I have some issues:

What is working:

It runs and connects correctly to SimConnect: I can use the shortcuts "Shift + Ctrl + B/C/D".

What is not working:

- Shortcut "###### + Ctrl + A" (ie toggle TaxiLightSwitch())

- Entering into ProcessNGXData() function. (I checked with printf).

 

It seems to me that the 2 lines to put in the "737NGX_Options.ini"  ([SDK] EnableDataBroadcast=1) don't work.

Has anyone of you faced the same situation?

 

Thank you . 

 

 

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

For your info, it is a problem with the SDK. The RequestClientData has an incorrect parameter. It shall be as per the orange text....

 

hr = SimConnect_RequestClientData(hSimConnect, PMDG_NGX_DATA_ID, DATA_REQUEST, PMDG_NGX_DATA_DEFINITION, SIMCONNECT_CLIENT_DATA_PERIOD_VISUAL_FRAME, SIMCONNECT_CLIENT_DATA_REQUEST_FLAG_CHANGED, 0, 0, 0);
 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this