Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Is it possible to write data directly to the offset in pmdg or do I have to do it through events like this
WriteFSUIPC($3110, 4, value);

WriteFSUIPC($3114, 4, 70008);

I am trying to directly send the state of e.g. a fuel pump switch and it doesn't work for me as if the offset was read-only.

Posted

All of the PMDG-specific offsets are read-only - as it says in the PMDG offset documentation:

Quote

Notes For Programmers

All offsets are READ ONLY. To change values please use the Events (known as "controls" in FSUIPC) as listed in the "PMDG_NGX_SDK.h" file which you can find in the PMDG 737 SDK. The numerical values of those controls can be used directly in button and key assignments in the FSUIPC7.INI file, or from Lua plug-ins using the ipc.control function.

 

20 minutes ago, Dominik said:

or do I have to do it through events like this
WriteFSUIPC($3110, 4, value);

WriteFSUIPC($3114, 4, 70008);

You can use offset 0x3110 to send the control if you like, but that is incorrect - writing to 0x3110 will trigger the control, and that offset contains the control number. Write the parameter to offset 0x3114 first, i.e.

    WriteFSUIPC($3114, 4, value);
    WriteFSUIPC($3110, 4, 70008);

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.