Page 1 of 1

How to turn panels on & off with a switch

Posted: 16 May 2019, 00:02
by Robs
Hi Spadders,

What I would like to do is use a button to switch a pop up panel on an off.
This is a generic question as I have a number of panels I wish to switch on and off at times.

This specific panel is a GPS on panel 3. I'd like to switch this on or off with an on/off button.
(or view--> instruments --> gps (3rd one down)

I can use a button press to toggle this GPS using simconnect event "Panel_3" but I cannot figure out a way of on off as with a toggle there is no way to start in a know state (except loading a flight) but I would think someone must have a better way.

I have seen events Panel_ID_open and Panel_ID_close where I thought you would send a parameter (=ID) with the panel number you want but it didn't work when I tried.

Suggestions welcome. I hope to hear.

Rob

Re: How to turn panels on & off with a switch

Posted: 16 May 2019, 09:51
by thedazman
I cant find a way of querying the panel state either.

If you want this on a switch then you can add the toggle to both on and off, but there's no guarantee it wont go out of sequence with the actual switch position.

(will have a play will panel ID to see if I can fathom what those event do)

Daz

Re: How to turn panels on & off with a switch

Posted: 16 May 2019, 10:31
by thedazman
apparently you should be able to put the Panel ID from the aircrafts Panel.cfg. so Panel_3 should match Panel.cfg

so in my case GPS Panel ID should = 2

[Window02]
size_mm=456,378
position=6
background_color=0,0,0
visible=1
ident=GPS_PANEL
window_size=0.715,0.730
sizeable=1
gauge00=KRON_fs9gps!gps_500WXF, 0,0


But you are correct it don't work still :-(

Daz

Re: How to turn panels on & off with a switch

Posted: 16 May 2019, 14:54
by Robs
Hi Daz,

Thanks for trying.
Yes I am living with the toggles on both on an off as you describe below but it is nice to program things how you want.
Its a generic question because I have lots of aircraft where it would be useful to pop the panel/gauge as per panel config window open close on a switch.

I have a 10" screen I used for GPS and FMS and the like.
Some aircraft have more than one useful instrument that I would like to see on the screen so I would like to program the equivalent of the FIP previous gauge/next gauge to cycle thru them or just have on off switches for that gauge.


I am glad you are seeing what I am seeing.

On Panel ID either the command doesn't work how we think or maybe Spad.next doesn't pass the ID correctly during the command (could Spadgod check?)

Thanks for looking.
I'll have a play later to see if it is possible some other way.
Any other suggestions welcome.
Rob.

Re: How to turn panels on & off with a switch

Posted: 16 May 2019, 17:30
by thedazman
apparently you should be able to use this to open panels exceeding numbers 0-9 according to the P3D gauge api.

Only GOD (SPAD) knows :-) if it should work or not.

Daz