Jump to content
Sign in to follow this  
Guest rpmc

Help with EGT gauge code

Recommended Posts

Guest rpmc

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

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
Guest rpmc

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...