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.

Problems with XML DME Gauge

Featured Replies

I have two problems with my Collins DME gauge for Valmet Vinka. A finnish military trainer aircraft.There is switch with 3 positions. Km, Kmh and Min. I have code(L:DME_disp,enum) 2 == if{ 0 (>DME_disp,enum } els{ (L:DME_disp,enum) 1 + (>L:DME_disp,enum) }But the switch stays in position 2 and never goes back to 0 position. And I can't find what is wrong with it.And then string. I have this code(G:Var1)%((A:NAV1 DME, kilometer ))%!3.1f!%((A:NAV1 DMESPEED, kilometer ))%!3.1f!%((A:NAV1 DME , kilometer ))%!3.1f!And it always shows me 0.0. Where is the problem? Text tag is not well documented anywhere.Thanks for your help.Hopefully you will see complete plane from me, Mikko Maliniemi and Kari Virtanen very soon.

For the try this: (L:DME_disp,enum) 2 == if{ 0 (>L:DME_disp,enum) } els{ (L:DME_disp,enum) 1 + (>L:DME_disp,enum) }or (L:DME_disp,enum) ++ d (>L:DME_disp,enum) 2 > if{ 0 (>L:DME_disp,enum) }The Select/Case consrtuct doesn' work this way for strings.You can use a "value line" case:%( (A:NAV1 DME,kilometer) (A:NAV1 DMESPEED,kilometers/hour) / 60.0 * (A:NAV1 DMESPEED,kilometers/hour) (A:NAV1 DME,kilometer) 3 (L:DME_disp,enum) case )%!3.1f!or a "String" case:%( (L:DME_disp,enum) )%{case}%{:0}%((A:NAV1 DME,kilometer))%!3.1f!%{:1}%((A:NAV1 DMESPEED,kilometers/hour))%!3.1f!%{:2}%((A:NAV1 DME,kilometer) (A:NAV1 DMESPEED,kilometers/hour) / 60.0 *)%!3.1f!%You need some extra code, if no DME is received, or the speed is 0.Arne Bartels

>You need some extra code, if no DME is received, or the speed>is 0.Thanks, it helped... Now trying to figure out that extra code ;) And making other gauges.

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.