Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PMDG SDK simconnect problem - connect to 2 aircrafts

Featured Replies

Hello,

I have a small home cockpit and I'm tryinng to write an app to connect my cockpit with Prepar3d (PMDG 737 and 777).

My code:

	enum CLIENT_DATA_777
        {
            PMDG_777X_DATA_ID = 0x4E477831,
            PMDG_777X_DATA_DEFINITION=0x4E477832,
            PMDG_777X_CONTROL_ID	=0x4E477833,
            PMDG_777X_CONTROL_DEFINITION = 0x4E477834,
        };

	enum CLIENT_DATA_737
        {
            PMDG_NGX_DATA_ID = 0x4E477831,
            PMDG_NGX_DATA_DEFINITION=0x4E477832,
            PMDG_NGX_CONTROL_ID	=0x4E477833,
            PMDG_NGX_CONTROL_DEFINITION = 0x4E477834,
        };


(...)

simconnect_MapClientToDataName("PMDG_NGX_Data", CLIENT_DATA_737.PMDG_NGX_DATA_ID);
simconnect_MapClientToDataName("PMDG_NGX_Control", CLIENT_DATA_737.PMDG_NGX_CONTROL_ID);

simconnect_MapClientToDataName("PMDG_777X_Data", CLIENT_DATA_777.PMDG_NGX_DATA_ID);
simconnect_MapClientToDataName("PMDG_777X_Control", CLIENT_DATA_777.PMDG_NGX_CONTROL_ID);

 

The problem is an exception: DUPLICATE_ID. How to solve this? Do I have to close simconnect and open it again with settings for 737 only when 737 is loaded and the same with settings for 777 only when 777 is loaded?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.