Sign in to follow this  
Guest Skymed

Engine Start and memory

Recommended Posts

I need to figure out a way in XML to know if the engine has been recently started, say in the last 20 minutes. In other words, can I store a variable (Boolean?) that is time dependent and gives me a 1 if the engine has been running recently?Steve

Share this post


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

>I need to figure out a way in XML to know if the engine has>been recently started, say in the last 20 minutes. In other>words, can I store a variable (Boolean?) that is time>dependent and gives me a 1 if the engine has been running>recently?>>SteveI would think you could add a variable for that to a typical XML eng starter xml gauge, and then reset it based on an xml timer (search for timers/timing/etc in this forum).

Share this post


Link to post
Share on other sites

DougWhat did you do to get it to work?perhaps you would share the C gauge if I can't get it to work in XML?Steve

Share this post


Link to post
Share on other sites

Steve,Here is the gauge, along with the source code. It provides two values via L:VarsL:ENGINE_COMBUSTION_FLAG - has a value of 1 when the engine is running and for 20 minutes afterward, 0 otherwise.L:TIME_SINCE_SHUT_OFF - the count towards the 20 minute mark, in seconds.You can enter the maximum value for L:TIME_SINCE_SHUT_OFF as a parameter on the gauge entry in panel.cfg. Enter the value you want, in seconds:gauge41=Engine_Combustion_Flag!combustion_flag, 2,2,10,10, 30 Gives a 30 second value, rather than default value of 1200 seconds.Doug

Share this post


Link to post
Share on other sites

Hi DougCan't make the link work. Would you be so kind as to send it via e mail:shanley0620@rogers.comThanks a millionSteve

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