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 737 Captain side WXR lvar

Featured Replies

Hello everybody,

I'm trying to find an Lvar in the "new" MSFS2024 PMDG 737 which would tell me if the captain side WXR is on or off. Can anyone help me find one?

53 minutes ago, finnisher said:

Hello everybody,

MSFS2024 PMDG 737 which would tell me if the captain side WXR is on or off. 

In addition to this?

wx1.png

wx2.png

 

747 Captain for the last 39 years, and still learning. 

  • Commercial Member

I am trying to check it out, but for some reason, I am unable to load the 738 in FS24. This used to work fine before. I did the latest update, but after selecting the aircraft + airfield and starting the flight, the loading process starts - then slows to a crawl and finally gets stuck. I even deleted the wasm folder and then gave it 15 minutes to compile the WASM modules, to no avail. Maybe it is in a better mood tomorrow 😞

Edited by Lorby_SI

LORBY-SI

  • Author
2 hours ago, LRBS said:

In addition to this?

wx1.png

wx2.png

 

I do know how to tell it from the screen but I’m trying to write a script that needs to know if the WXR is on or off since the button on the EFIS panel is a (momentary) toggle button. 

More specifically, I want a script that turns the XPNDR/TCAS to Alt Rptg and WXR off (if it is on) to be used before pushback and after landing. It doesn’t work if the script can’t determine the state of the WXR. 

17 minutes ago, finnisher said:

I do know how to tell it from the screen but I’m trying to write a script that needs to know if the WXR is on or off since the button on the EFIS panel is a (momentary) toggle button. 

More specifically, I want a script that turns the XPNDR/TCAS to Alt Rptg and WXR off (if it is on) to be used before pushback and after landing. It doesn’t work if the script can’t determine the state of the WXR. 

I understand now what you are looking for. IMHO, it makes more sense to actually touch the respective switch than to program buttons. 
Anyhow, the best person and customer service is at Lorby; he is always available to help.
Regarding the WXR switch on the EFIS, yes, it is momentary on/off, with the corresponding indication on ND. It is OFF when there is no indication on ND. 
Sorry for the confusion. 

747 Captain for the last 39 years, and still learning. 

  • Commercial Member
17 hours ago, finnisher said:

Hello everybody,

I'm trying to find an Lvar in the "new" MSFS2024 PMDG 737 which would tell me if the captain side WXR is on or off. Can anyone help me find one?

I don't think such a variable exists. The way I see it, this information is "living" only inside their WASM module, it is not published to a simulator variable.

LORBY-SI

  • Author
5 hours ago, Lorby_SI said:

I don't think such a variable exists. The way I see it, this information is "living" only inside their WASM module, it is not published to a simulator variable.

That's what I was worried about, but thank you nevertheless!

Another user on the PMDG Discord suggested that I create a counter variable which increments everytime the script touches the WXR so I can keep track of its state. I'll give that a try but mentioning it here as an alternative solution if someone else ever comes across the same problem.

  • Commercial Member
12 minutes ago, finnisher said:

Another user on the PMDG Discord suggested that I create a counter variable which increments everytime the script touches the WXR so I can keep track of its state. I'll give that a try but mentioning it here as an alternative solution if someone else ever comes across the same problem.

What is your use case? Is this about showing the state of the WXR on a StreamDeck action?

LORBY-SI

  • Author
5 hours ago, Lorby_SI said:

What is your use case? Is this about showing the state of the WXR on a StreamDeck action?

I use the rotary knob on Honeycomb Bravo for the XPNDR/TCAS knob. When I turn it to the first position I want it to turn the transponder to Alt Rptg Off and WXR off (before pushback and after landing). When I turn it to the last increment I want the transponder to TA/RA and WXR on (before lineup). 
 

This all doesn’t work if I don’t know the state of the WXR. 

  • Commercial Member
13 hours ago, finnisher said:

I use the rotary knob on Honeycomb Bravo for the XPNDR/TCAS knob. When I turn it to the first position I want it to turn the transponder to Alt Rptg Off and WXR off (before pushback and after landing). When I turn it to the last increment I want the transponder to TA/RA and WXR on (before lineup). 
 

This all doesn’t work if I don’t know the state of the WXR. 

You could try and run a script like this one:

(LISTEN_FOR_K:ROTOR_BRAKE)·36904·==·if{·1·(L:wxrstate)·-·(>L:wxrstate)·}

You only have to run it once per session, for example as an aircraft automated script, one shot, beginning. The listener will track all occurences of the "ROTOR_BRAKE" event, that PMDG uses to send the button events to their internal logic. 36904 is the "left-mouse-button-up" code of the WXR button on the EFIS panel. So when you click on the button, once the mouse button is released, the LVar will toggle between 0 and 1. 

But this has several drawbacks - there is more than one button to operate the WXR, and they have different codes. So you may need more than one script. Plus, absoultely everything is handled through the ROTOR_BRAKE event, so you will put a fair bit of load on AAO. When you operate the WXR by script, make sure to use the correct RB code.

LORBY-SI

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.