I’m sorry if this has already been asked before. I used search, but couldn’t find it.
The B events for the audio panel work fine. But my issue is, that there seem to be no variables (accessible through SimConnect) that determine the state of the lights. Some of the ‘light states’ can be determined by for example COM TRANSMIT:1 or COM RECEIVE:1. But how about AUX, TEL, etc…
There’s nothing on the SDK page as far as I could tell. Through the behavior window I wasn’t able to find a working variable, and I have tried with Spad.Next, but I haven’t been able to find anything that works.
Is this something that can be added to the Simulation Variables page maybe? It would help a lot of people and also companies to interface their hardware and software.
You can use the behavior tool and check in the material tab how emissives are set for the g1000 audiopanel, it will usually be linked to a A type simvar or a local simvar.
Examples:
For the MKR MUTE button you can look for A:MARKER BEACON TEST MUTE
I have tried everything. I have used our own software, I have used Spad.Next. But none of those variables work. I have tried them als L/Local variables, B, normal, etc… I have tried with the :1: and without.
Spad.Next can scan for all available local variables and B events, but these do not show up.
I am using 2024, might that be the difference?
And by the way. These are pretty generic variables, used in many aircraft. Shouldn’t they be on the SDK page?
There is no legacy simvar for those buttons because they never had any functionality until FS2020 SU10. You can only toggle them on and off with B or H events. 2024 will not work because _TOGGLE does not work for B events though SImConnect yet. See - EnumerateInputEvents doesn't return _INC, _DEC, _TOGGLE, _ON, and _OFF events
I can toggle all the buttons. But so far I haven’t been able to find any variable that indicates the state. So if for example AUX is on or of, or if TEL is on or off.
That why I was asking here If they do not exist, it would at least be great if they can be introduced. The audio panel is in a lot of aircraft, so quite essential. It is interesting to have these for both software and hardware panels (cockpit builders).
MSFS2024 supports calling Bvars via RPN, you don’t need the SimConnect APIs for it. (>B:AS1000_Play_MidCom_Toggle) should execute the toggle command just fine in any app that runs RPN through execute_calculator_code()
Most Bvars can be used to get the state as well. (B:AS1000_Play_MidCom) will likely return the state of the mode/LED. I’d test it for you but MSFS is stuck trying to download the latest beta.
Yes, I know. I use them in various locations. But this one for example does not return anything (stays unsubscribed). Tested with multipe applications.