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.

How to reach panel parameters

Featured Replies

Hello all, Is it possible to reach gauge and panel parameters from simconnect?I mean these parameters that can be defined for each panel:Gauge Parameters (G:)Local Parameters (L:)Thanks, Carlos.

  • Commercial Member

>Is it possible to reach gauge and panel parameters from>simconnect?>>I mean these parameters that can be defined for each panel:>>Gauge Parameters (G:)>Local Parameters (L:)If you are writing an FS DLL or Gauge to use SimConnect you can use the assorted C-interface panels routines like lookup_var and trigger_key_event, via the same PANELS structure defined in GAUGES.H. You need to define an export variable called Panels, thus:EXTERN_C __declspec(dllexport) PANELS *Panels = NULL;Then, when SimConnect loads your Module it will fill ths pointer in for you.Obviously this cannot be used with external EXE clients of SimConnect.In general though, all the gauges.h defined token variables and key events have Sim Var and SimEvent equivalents.I don't know anything about "local parameters".RegardsPete

Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

Hi Pete, Thanks for your answer! I will give you an example and maybe you can help me out.If I develop a panel for a military transponder with more modes and codes than a civil one. How do I know from an external EXE simconnect client which mode and code I have selected on the new panel?Is it possible?Thanks!Carlos

  • Commercial Member

>If I develop a panel for a military transponder with more>modes and codes than a civil one. How do I know from an>external EXE simconnect client which mode and code I have>selected on the new panel?>>Is it possible?Well, this is one of the things folks used FSUIPC offsets for. They would ask me to reserve some offsets into which, from the panel, they could write data. This could then be read by an external program interfacing to FSUIPC or WideFS. In fact of course it works like shared memory -- both ends can read or write.Of course this can also be done with FSUIPC4. But for a 100% SimConnect solution you would instead use the "Client Data" facilities. Check out all the SimConnect functions for creating, writing and reading Client Data, starting of course with "SimConnect_CreateClientData".I have not used these facilities myself, but they were specifically requested during FSX development for applications such as those you describe. I do have on my list, to do at some stage in the future, an item to support optional Client Data mapping to FSUIPC offsets for compatibility with older, FSUIPC-interfacing programs too.RegardsPete

Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

Thanks Pete,I taked a look at that and it seemed to me that was something like a "shared memory" that could be used by multiple simconnect clients.So, as I understand, is it possible to read/write this data from a XML/C Gauge? How shall I do it?Carlos.

From a C gauge no problem. Just use use simconnect in the gauge code and use the correct functions here.Will look like MapClientDataNameToID(), some AddToClientDataDataDefinition() and periodically calls to RequestClientData() to get data from the shared area.From a XML gauge it may be more difficult. AFAIK there is now way to use simconnect from XML. You could bypass this by creating a FSX module that links to both simconnect and gauge system. Arne Bartels posted code examples on how to transfer data between C and XML gauge. Look at his trafficradarxml gauge, it is opensource and should be in the library.

  • Commercial Member

>I taked a look at that and it seemed to me that was something>like a "shared memory" that could be used by multiple>simconnect clients.Yes, exactly. Just like FSUIPC Offsets -- in fact it is to replace theis use of FSUIPC that the facility was added.>So, as I understand, is it possible to read/write this data>from a XML/C Gauge? How shall I do it?I don't know about XML. Can you write a Simconnect client in XML? Seems rather implausible. In C it is a matter of using SimConnect. Your gauge would be a SimConnect client.RegardsPete

Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

Create an account or sign in to comment

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.