I don't need to go to all that trouble to be able to tell you that what you are currently doing will not work. The good news is it can be made to work as you want with one extra step in the code. Before i elaborate on the solution can you confirm that the code i posted works if you allow the hardware to be connected before trying to run the panel. you will obviously have to start the panel manually for this test. That means it works if you load xplane after AM as you wanted.xplanearg wrote: ↑Thu Apr 15, 2021 9:36 amHi, please try to reproduce like so:Sling wrote: ↑Thu Apr 15, 2021 7:11 am Yes my thoughts exactly. When trying to diagnose an issue or to get some code working you should keep the environment the same for each test as it just introduces more and more variances each time you test. I always recommend testing with default c172 if at all possible. Once working you can then start to introduce new things.
1) set up airmanager to load automatically on the computer startup
2) configure your panel to load at airmanager startup.
3) use the code i provided in the example above
4) turn off the pc running airmanger
5) put your phisicall switch in the on position (battery for instance)
6) start the pc running airmanager, it will load airmanger automatically and load your panel automatically
7) start x-plane (airplane previously set up to load cold and dark)
8) the battery will not be turned on as it should
Its important we get this established first.