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.

Lvars for landing, runway and position lights in PMDG 737

Featured Replies

Hello everybody,

I’m completing a remote control panel for the PMDG 737 using an app called Matric for the visual setting of switches and buttons and AAO to bridge the commands from Matric deck and MSFS. Another application called Simconnect2Matric is the interface between MSFS and Matric so any switch or button movement in the VC is replicated in Matric using Lvars. 

Everything works fine and all the positions of switches  and buttons are synchronized between the Matric deck and the VC of MSFS. 

The only variables I didn’t found using the Lvars read function of AAO are those regarding the state of landing, runway and position light.

Anyone can give me a suggestion about this matter?

Thank you in advance.

Andrea

  • Commercial Member

Suggestion: use the official PMDG SDK instead of LVars and ROTOR_BRAKE codes. There is a chapter in the AAO manual about how to do that. The PMDG Variables and custom Events are in the AAO lists, but data transmisdion has to be configured before they start working.

LORBY-SI

  • Author

Data transmission is active but when I try to read a PMDG: vars with Simconnect2Matric this crashes. 

This doesn't happen with lvars.

  • Commercial Member
12 hours ago, whityini said:

when I try to read a PMDG: vars with Simconnect2Matric this crashes

(PMDG: variables are a AAO internal asset, you can't read them anywhere else. You would have to run an autoscript in AAO that copies the value from the PMDG var into your own LVar.

I'm just saying that the LVars from the behavior code in general are not meant to be used that way. You have no guarantee that they will even have the same name after a PMDG update.

Edited by Lorby_SI

LORBY-SI

  • Author

Ok it's clear now. Unfortunatly I'm a newbie on this matter and I don't really know how to run such an autoscript in AAO. Could you please give me an example?

 

  • Commercial Member

Create a script like this:

(PMDG:somevariable) (>L:mylvar, Number)

Save it and configure it as an Aircraft Automated Script (menu Scripting), repeating, with a frequency that is suitable for the use case (=for me, it doesn't make sense to query a light setting every 100ms. I can live with a half-second delay.

That being said, aren't those light switches connected to the actual simulator "(A:" variables? 

And: do you know how to look at the behavior code in MSFS developer mode? In most cases that will tell you everything about a switch in the cockpit.

Edited by Lorby_SI

LORBY-SI

  • Commercial Member
On 9/19/2024 at 2:06 PM, whityini said:

those regarding the state of landing, runway and position light.

Landing light switches
(L:switch_113_73X, Number)
(L:switch_114_73X, Number)

Runway light switches

(L:switch_115_73X, Number)
(L:switch_116_73X, Number)

Position (three state switch!):

(L:switch_123_73X, Number)

Be mindful that LVars tell you the state of the animation of the switch, nothing else. They don't tell you if the lights are actually on or off.

How to find this:
Activate MSFS developer mode -> open "Tools->Behaviors" -> click back into the sim, hover the mouse over the switch that you are interested in, press Ctrl G. This will bring up the behavor code of the switch and you can look for the Lvars and ROTOR_BRAKE codes in there.

Edited by Lorby_SI

LORBY-SI

  • Author

Thank you Lorby I have found all the variables I need. My deck is almost done. 

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.