SpiekerHoiting Posted August 29, 2023 Report Posted August 29, 2023 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?
John Dowson Posted August 30, 2023 Report Posted August 30, 2023 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
SpiekerHoiting Posted August 30, 2023 Author Report Posted August 30, 2023 Thank you very much John! 'FSUIPCConnection.SendControlToFS(67090, 1)' works!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now