Sign in to follow this  
Guest rpmc

Help with EGT gauge code

Recommended Posts

I'm attempting to design a Graphic Engine Monitor gauge. One of the features is a trend indicator light that displays whether the EGT is increasing or decreasing. I tried the following without success. Line 3 -- I hoped that, every update cycle, it would store the variable "EGT" as a variable called "Old", then take the current Eng1 exhaust gas temperature and store it as the variable "EGT". By comparing "EGT" to "OLD", I could tell if the temperature was increasing or decreasing. Unfortunately, this code is so broken that "EGT" and "Old" never appear to be anything other than the default value of zero. Help with this code? Or, can anyone suggest another way to keep track of changes in the exhaust gas temperature? Thanks in advance. ((L:EGT,number) (>L:Old,number)) ((A:Eng1 exhaust gas temperature,farenheit) (>L:EGT,number)) (L:Old,number) (L:EGT,number) < (L:Old,number) (L:EGT,number) >

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,Too many parenthesis here: ((L:EGT,number) (>L:Old,number)) ((A:Eng1 exhaust gastemperature,farenheit) (>L:EGT,number)) Just make it (L:EGT,number) (>L:Old,number) (A:Eng1 exhaust gastemperature,farenheit) (>L:EGT,number)Hope this helpsTom

Share this post


Link to post
Share on other sites

Thanks, Tom. It works now. xml syntax is still a little tricky to me.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this