Problems with XML DME Gauge

Recommended Posts

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.

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

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

Share on other sites

>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

Register a new account

• Tom Allensworth,
Founder of AVSIM Online

• Hot Spots

• 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!

• Donation Goals

AVSIM's 2018 Fundraising Goal

Donate to our annual general fund. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.

\$19,365.00 of \$36,000.00 goal reached.
Donate Now