Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello,

I am programming an overhead interface for my soon-to-be A320 cockpit. I program in visual basic because that is the language I know. I can send and read LVARs for the FBWA320 using simconnect and FSUIPC. For instance: I can read the battery's potentials, and switch them on and off. But the only thing that I can't get to work is the "TOGGLE_EXTERNAL_POWER".

FSUIPCConnection.WriteLVar("L:A32NX_OVHD_ELEC_BAT_1_PB_IS_AUTO", 1) works,

but FSUIPCConnection.WriteLVar("TOGGLE_EXTERNAL_POWER", 1) does not. Am I doing something wrong?

Posted
13 hours ago, SpiekerHoiting said:

but FSUIPCConnection.WriteLVar("TOGGLE_EXTERNAL_POWER", 1) does not. Am I doing something wrong?

TOGGLE_EXTERNAL_POWER is a control/event, not an lvar. To send this event, you can use the the facilities provided at offset 0x3110 to send any control to the FS, using the control number 67090. Alternatively, controls are also known as k-type variables, so you can achieve the same by sending the calculator code "1 (>K:TOGGLE_EXTERNAL_POWER)".

John

Please sign in to comment

You will be able to leave a comment after signing in



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.