Jump to content
The simFlight Network Forums

How to retrieve values of PMDG 737 condition variables through FSUIPC


Recommended Posts

Posted

Hi i'm working on a C# plugin for Voice Attack which communicates internally with MSFS variables, but i'm a bit of a noob in this so i've been struggling a little bit.

So i integrated FSUIPCs dll into my project, and i managed to code the way to set controls in the aircraft through FSUIPCConnection.SendControlToFS and the PMDG_737_NGX_Control enum. That one was pretty simple. My issue now is to find the way to retrieve the value of a condition variable (the ones listed in the PMDG 737 SDK header file) by inputting the name of the variable. For example "APU_EGTNeedle" and to get the float value out of it.

What would be the easiest way to do this, is there another method like "SendControlToFS" but to read data?

 

Cheers!

Posted

You posted in the wrong forum - I have moved your post to the specific sub-forum for FSUIPC7 / MSFS.

21 hours ago, WRiker2701 said:

My issue now is to find the way to retrieve the value of a condition variable (the ones listed in the PMDG 737 SDK header file) by inputting the name of the variable. For example "APU_EGTNeedle" and to get the float value out of it.

The additional variables provided by the PMDG SDK are added to an FSUIPC offset area. For example, APU_EGTNeedle is on offset 0x64E8:

64E8 4 FLT32 APU_EGTNeedle

Please see the document Offset Mapping for PMDG 737-700.pdf in your FSUIPC7 Documents folder. You need to enable data broadcasts in the PMDG 737 ini file first (explained in the document).

John

Posted

Offset then. Should i use the "Process()" method then? I guess "ClassInstance" would be the offset number, and how to get the variable value? i see this method returns void...

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.