Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is it possible in XML to do.......

Featured Replies

Hi,Is it possible, in XML, to create a gauge that reads, oil pressure or oil temperature or both, then once a particular pressure or temperature is reached starts a counter and when this counter hits a certain number causes the planes engine/s to stop?.CheersDan.

You mean:If the set temp/pressure is exceeded, the counter is incremented. And when both temp/pressure drop below the set value, and then exceed it again, the counter is incremented again.And this repeats untill the counter exceeds a set maximum.This is very easy to make in XML (about 10-20 lines of code), for one engine. Even to make the pressure/temp threshold and counter settable (via mouseclicks), but that's more work of course.Would be a nice exercise to learn XML gauge programming :-)Rob

Hi Rob,Yes thats exactly what I am after.How would I even start to program this in XML, I have "dabbled" in XML before but really simple stuff, ASI, VSI etc.I had a look at the thread mention, but unfortunatly I cannot really understand it.Could someone give me a leg up in this, just to get me started?.Thanks very muchDan.

  • Author

Hi Dan,Just an example, this one should work:(A:General eng1 oil temperature,celsius) 100 > if{ (G:Var1) 0 == if{ 1 (>G:Var1) (P:Local Time, seconds) 10 + (>G:Var2) } } els{ 0 (>G:Var1) } (G:Var1) 1 == if{ (P:Local Time, seconds) (G:Var2) > if{ (>K:MIXTURE1_LEAN) } }If oil temperature gets higher than 100, the engine will shut off after 10 seconds.When you manage to keep temp below 100, nothing will happen.Variations in time and parameters are possible of course.Jan"Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.