How do I watch the info on a variable coming from FS2020

Questions about deployment and use of Air Manager Instruments

Moderators: russ, Ralph

Post Reply
Message
Author
brlowe
Posts: 99
Joined: Fri Oct 16, 2020 6:08 pm

How do I watch the info on a variable coming from FS2020

#1 Post by brlowe »

I know I have seen it but cannot find the answer.
In Air Manager 4.0 beta how to I watch the info coming from FS2020 on a variable like "GENERAL ENG OIL PRESSURE?
I have been working on my Mooney panel with instruments from Ralph and have a lot of it working but a couple items are giving me strange reading not matching the in game panel but close. It has been a lot of fun working on this except yesterday when I deleted a cluster gauge after I got it working so doing that one again today.

Thank you

User avatar
Ralph
Posts: 7933
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: How do I watch the info on a variable coming from FS2020

#2 Post by Ralph »

With the Viewer as all other variables and datarefs, it can be opened from the Create/Edit tab.

User avatar
Sling
Posts: 5242
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: How do I watch the info on a variable coming from FS2020

#3 Post by Sling »

You can also use a print in your code for testing purposes. Do not leave the print in place once the code is working as you want.

Another way is to use the debugger but that’s probably overkill for what you need.

brlowe
Posts: 99
Joined: Fri Oct 16, 2020 6:08 pm

Re: How do I watch the info on a variable coming from FS2020

#4 Post by brlowe »

Thank you all. That helped me a lot and I'm getting closer to having a working panel.

1007
Posts: 1
Joined: Sun Nov 01, 2020 8:37 am

Re: How do I watch the info on a variable coming from FS2020

#5 Post by 1007 »

Sling wrote: Wed Dec 09, 2020 10:21 pm Do not leave the print in place once the code is working as you want.
Hallo
Is this a problem? or what happens when we do not leave the "print"?

User avatar
Keith Baxter
Posts: 4685
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: How do I watch the info on a variable coming from FS2020

#6 Post by Keith Baxter »

1007 wrote: Thu Dec 10, 2020 4:04 pm
Sling wrote: Wed Dec 09, 2020 10:21 pm Do not leave the print in place once the code is working as you want.
Hallo
Is this a problem? or what happens when we do not leave the "print"?
Hi,

Print statements, if the print is iterated many times, will slow down and use up a lot of CPU.
When you have resolved the reason for the print statement remove it, If there are many and you loose track or just check what print statement need removing, In notepad ++, just bookmark all line that contain <print> using the binocular/find tab. Then in <search> <bookmark> just <cut bookmarked lines>

Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

User avatar
Sling
Posts: 5242
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: How do I watch the info on a variable coming from FS2020

#7 Post by Sling »

1007 wrote: Thu Dec 10, 2020 4:04 pm
Sling wrote: Wed Dec 09, 2020 10:21 pm Do not leave the print in place once the code is working as you want.
Hallo
Is this a problem? or what happens when we do not leave the "print"?
I’m a little confused. Not leaving the print is what you want to do. If that was a typo and you meant what happens when you leave the print then Keith’s post answers that perfectly.

Post Reply