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.

Custom RMI

Featured Replies

Hi again!Sorry to post another topic so soon but I am having trouble yet again :( I am now trying to code an RMI for a 737NG panel and it is my last gauge that I have to do on it! :(As I said in my previous post, I am a beginner with little experience, if someone could help me out by posting the code and guiding me through what each part means that'd be great!I have made the background, mask, compass, needles and the vor/adf switches, now I need to animate them!Thanks

Hi!Some times is easier to use your artwork in a similar gauge and see what the changes did. You may try the 747 XML gauges for example.Javier

Hi!Some times is easier to use your artwork in a similar gauge and see what the changes did. You may try the 747 XML gauges for example.Javier
HiI've tried changing the artwork in a different RMI but the gauge disappears. I have made my own custom one now and it seems to be working OK.Thanks anyway!
  • Commercial Member
<Gauge Name="RMI" Author="Engjell Berisha"> <Image Name="RMI.bmp"/> <Size X="150" Y="200"/> <Position X="0" Y="0"/>   <Element>   <Select>   <Value>(A:NAV1 DME,nmiles) 0 < if{ 0 (>L:NAV-1,bool) } els{ 1 (>L:NAV-1,bool) }   </Value>   </Select>   </Element>   <Element>   <Select>   <Value>(A:NAV2 DME,nmiles) 0 < if{ 0 (>L:NAV-2,bool) } els{ 1 (>L:NAV-2,bool) }   </Value>   </Select>   </Element>   <Element>	<Position X="0" Y="0"/>	<Visible>(L:BAT-PWR,bool) 1 ==</Visible>   <Element>	  <Position X="25" Y="18"/>	<Text X="50" Y="20" Length="5" Font="IRS" Color="#cccec9" Adjust="Center" VerticalAdjust="Center" Fixed="Yes">	   <String>%((A:NAV1 DME,nmiles))%!4.1f!</String>	  </Text>   </Element>   <Element>	  <Position X="80" Y="18"/>	<Text X="50" Y="20" Length="5" Font="IRS" Color="#cccec9" Adjust="Center" VerticalAdjust="Center" Fixed="Yes">	   <String>%((A:NAV2 DME,nmiles))%!4.1f!</String>	 </Text>    </Element>   </Element>   <Element>	  <Position X="18" Y="69"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-CARD.bmp" Bright="Yes">		 <Axis X="57.5" Y="57.5"/>	  </Image>	  <Rotate>	   <Value>(L:FMC-IRU-ALIGNED,bool) 1 == if{ (A:Plane heading degrees gyro,radians) /-/ }</Value>	  </Rotate>   </Element>   <Element>	  <Visible>(L:RMI-CNTRL-1-L,bool) 0 ==</Visible>	  <Position X="18" Y="72"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-1.bmp" Bright="yes">		 <Axis X="8" Y="55"/>	  </Image>	  <Rotate>	  <Value>(A:Nav1 has nav,bool) if{ (A:Nav1 Radial,radians) (A:Plane heading degrees gyro,radians) - pi + } els{ 1.57 }</Value>	  </Rotate>   </Element>   <Element>	  <Visible>(L:RMI-CNTRL-1-L,bool) 1 ==</Visible>	  <Position X="18" Y="72"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-1.bmp" Bright="yes">		 <Axis X="8" Y="55"/>	  </Image>	  <Rotate>		 <Value>(A:ADF1 signal,number) 0 > if{ (A:Adf1 Radial,radians) } els{ 1.57 }</Value>	  </Rotate>   </Element>   <Element>	  <Visible>(L:RMI-CNTRL-1-R,bool) 0 ==</Visible>	  <Position X="18" Y="68"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-2.bmp" Bright="yes">		 <Axis X="10" Y="57.5"/>	  </Image>	  <Rotate>	  <Value>(A:Nav2 has nav,bool) if{ (A:Nav2 Radial,radians) (A:Plane heading degrees gyro,radians) - pi + } els{ 1.57 }</Value>	  </Rotate>   </Element>   <Element>	  <Visible>(L:RMI-CNTRL-1-R,bool) 1 ==</Visible>	  <Position X="18" Y="68"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-2.bmp" Bright="yes">		 <Axis X="10" Y="57.5"/>	  </Image>	  <Rotate>		 <Value>(A:ADF1 signal,number) 0 > if{ (A:Adf1 Radial,radians) } els{ 1.57 }</Value>	  </Rotate>   </Element>   <Element>	<Position X="16" Y="75"/>	  <Select>		 <Value>(A:NAV1 HAS NAV, bool)</Value>		 <Case Value="0">			<Image Name="FLAG-1.bmp" ImageSizes="33,36"/>		 </Case>	  </Select>   </Element>   <Element>	<Position X="114" Y="75"/>	  <Select>		 <Value>(A:NAV2 HAS NAV, bool)</Value>		 <Case Value="0">			<Image Name="FLAG-2.bmp" ImageSizes="35,32"/>		 </Case>	  </Select>   </Element>   <Element>	<Position X="59" Y="68"/>	<Visible>(L:IRU-1,bool) 0 == || (L:IRU-2,bool) 0 == ||</Visible>	<Image Name="FLAG-3.bmp" ImageSizes="35,32"/>   </Element>   <Element>	<Position X="21" Y="18"/>	<Visible>(L:NAV-1,bool) 0 ==</Visible>	<Image Name="RMI-DASHED.bmp" ImageSizes="35,32"/>   </Element>   <Element>	<Position X="80" Y="18"/>	<Visible>(L:NAV-2,bool) 0 ==</Visible>	<Image Name="RMI-DASHED.bmp" ImageSizes="35,32"/>   </Element>   <copyright>(c)2009 Engjell Berisha</copyright></Gauge>

It's rather complex for an RMI but I added some complex parts so that I looks better particularly with the whole RMI-DASHED stuff.Below is the RMI-Control gauge:

<Gauge Name="RMI-CNTRL" Author="Engjell Berisha"> <Image Name="RMI-CNTRL.bmp"/> <Size X="200" Y="93"/> <Position X="0" Y="0"/> <Element>	<Position X="28" Y="44"/> 	<Select>	<Value>(L:RMI-CNTRL-1-L,bool)</Value>	<Case Value="0"><Image Name="RMI-CNTRL-1.bmp"/></Case>	<Case Value="1"><Image Name="RMI-CNTRL-2.bmp"/></Case>	</Select> </Element> <Element>	<Position X="128" Y="44"/> 	<Select>	<Value>(L:RMI-CNTRL-1-R,bool)</Value>	<Case Value="0"><Image Name="RMI-CNTRL-1.bmp"/></Case>	<Case Value="1"><Image Name="RMI-CNTRL-2.bmp"/></Case>	</Select> </Element>   <Mouse>   <Area Left="28" Right="68" Top="44" Bottom="84">   <Cursor Type="Hand"/>   <Click>3 (>L:C17, number) (L:RMI-CNTRL-1-L,bool) ! (>L:RMI-CNTRL-1-L,bool) }</Click>   </Area>   <Area Left="128" Right="168" Top="44" Bottom="84">   <Cursor Type="Hand"/>   <Click>3 (>L:C17, number) (L:RMI-CNTRL-1-R,bool) ! (>L:RMI-CNTRL-1-R,bool) }</Click>   </Area>   </Mouse>   <copyright>(c)2009 Engjell Berisha</copyright></Gauge>

Here are all the images I used:http://i18.photobucket.com/albums/b111/EV0317/FLAG-1.jpghttp://i18.photobucket.com/albums/b111/EV0317/FLAG-2.jpghttp://i18.photobucket.com/albums/b111/EV0317/FLAG-3.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-1.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-2.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-CARD.jpghttp://i18.photobucket.com/albums/b111/EV0...RMI-CNTRL-1.jpghttp://i18.photobucket.com/albums/b111/EV0...RMI-CNTRL-2.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-CNTRL.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-DASHED.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-MASK.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI.jpgOnce again there are complex Lvar's which govern my gauge so the coding would need to be dumb-down a little bit, such as my IRU lvars and my PWR and BAT-PWR lvars. And then replaced with the appropriate variables.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

<Gauge Name="RMI" Author="Engjell Berisha"> <Image Name="RMI.bmp"/> <Size X="150" Y="200"/> <Position X="0" Y="0"/>   <Element>   <Select>   <Value>(A:NAV1 DME,nmiles) 0 < if{ 0 (>L:NAV-1,bool) } els{ 1 (>L:NAV-1,bool) }   </Value>   </Select>   </Element>   <Element>   <Select>   <Value>(A:NAV2 DME,nmiles) 0 < if{ 0 (>L:NAV-2,bool) } els{ 1 (>L:NAV-2,bool) }   </Value>   </Select>   </Element>   <Element>	<Position X="0" Y="0"/>	<Visible>(L:BAT-PWR,bool) 1 ==</Visible>   <Element>	  <Position X="25" Y="18"/>	<Text X="50" Y="20" Length="5" Font="IRS" Color="#cccec9" Adjust="Center" VerticalAdjust="Center" Fixed="Yes">	   <String>%((A:NAV1 DME,nmiles))%!4.1f!</String>	  </Text>   </Element>   <Element>	  <Position X="80" Y="18"/>	<Text X="50" Y="20" Length="5" Font="IRS" Color="#cccec9" Adjust="Center" VerticalAdjust="Center" Fixed="Yes">	   <String>%((A:NAV2 DME,nmiles))%!4.1f!</String>	 </Text>    </Element>   </Element>   <Element>	  <Position X="18" Y="69"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-CARD.bmp" Bright="Yes">		 <Axis X="57.5" Y="57.5"/>	  </Image>	  <Rotate>	   <Value>(L:FMC-IRU-ALIGNED,bool) 1 == if{ (A:Plane heading degrees gyro,radians) /-/ }</Value>	  </Rotate>   </Element>   <Element>	  <Visible>(L:RMI-CNTRL-1-L,bool) 0 ==</Visible>	  <Position X="18" Y="72"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-1.bmp" Bright="yes">		 <Axis X="8" Y="55"/>	  </Image>	  <Rotate>	  <Value>(A:Nav1 has nav,bool) if{ (A:Nav1 Radial,radians) (A:Plane heading degrees gyro,radians) - pi + } els{ 1.57 }</Value>	  </Rotate>   </Element>   <Element>	  <Visible>(L:RMI-CNTRL-1-L,bool) 1 ==</Visible>	  <Position X="18" Y="72"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-1.bmp" Bright="yes">		 <Axis X="8" Y="55"/>	  </Image>	  <Rotate>		 <Value>(A:ADF1 signal,number) 0 > if{ (A:Adf1 Radial,radians) } els{ 1.57 }</Value>	  </Rotate>   </Element>   <Element>	  <Visible>(L:RMI-CNTRL-1-R,bool) 0 ==</Visible>	  <Position X="18" Y="68"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-2.bmp" Bright="yes">		 <Axis X="10" Y="57.5"/>	  </Image>	  <Rotate>	  <Value>(A:Nav2 has nav,bool) if{ (A:Nav2 Radial,radians) (A:Plane heading degrees gyro,radians) - pi + } els{ 1.57 }</Value>	  </Rotate>   </Element>   <Element>	  <Visible>(L:RMI-CNTRL-1-R,bool) 1 ==</Visible>	  <Position X="18" Y="68"/>	  <MaskImage Name="RMI-MASK.bmp">		 <Axis X="57.5" Y="57.5"/>	  </MaskImage>	  <Image Name="RMI-2.bmp" Bright="yes">		 <Axis X="10" Y="57.5"/>	  </Image>	  <Rotate>		 <Value>(A:ADF1 signal,number) 0 > if{ (A:Adf1 Radial,radians) } els{ 1.57 }</Value>	  </Rotate>   </Element>   <Element>	<Position X="16" Y="75"/>	  <Select>		 <Value>(A:NAV1 HAS NAV, bool)</Value>		 <Case Value="0">			<Image Name="FLAG-1.bmp" ImageSizes="33,36"/>		 </Case>	  </Select>   </Element>   <Element>	<Position X="114" Y="75"/>	  <Select>		 <Value>(A:NAV2 HAS NAV, bool)</Value>		 <Case Value="0">			<Image Name="FLAG-2.bmp" ImageSizes="35,32"/>		 </Case>	  </Select>   </Element>   <Element>	<Position X="59" Y="68"/>	<Visible>(L:IRU-1,bool) 0 == || (L:IRU-2,bool) 0 == ||</Visible>	<Image Name="FLAG-3.bmp" ImageSizes="35,32"/>   </Element>   <Element>	<Position X="21" Y="18"/>	<Visible>(L:NAV-1,bool) 0 ==</Visible>	<Image Name="RMI-DASHED.bmp" ImageSizes="35,32"/>   </Element>   <Element>	<Position X="80" Y="18"/>	<Visible>(L:NAV-2,bool) 0 ==</Visible>	<Image Name="RMI-DASHED.bmp" ImageSizes="35,32"/>   </Element>   <copyright>(c)2009 Engjell Berisha</copyright></Gauge>

It's rather complex for an RMI but I added some complex parts so that I looks better particularly with the whole RMI-DASHED stuff.Below is the RMI-Control gauge:

<Gauge Name="RMI-CNTRL" Author="Engjell Berisha"> <Image Name="RMI-CNTRL.bmp"/> <Size X="200" Y="93"/> <Position X="0" Y="0"/> <Element>	<Position X="28" Y="44"/> 	<Select>	<Value>(L:RMI-CNTRL-1-L,bool)</Value>	<Case Value="0"><Image Name="RMI-CNTRL-1.bmp"/></Case>	<Case Value="1"><Image Name="RMI-CNTRL-2.bmp"/></Case>	</Select> </Element> <Element>	<Position X="128" Y="44"/> 	<Select>	<Value>(L:RMI-CNTRL-1-R,bool)</Value>	<Case Value="0"><Image Name="RMI-CNTRL-1.bmp"/></Case>	<Case Value="1"><Image Name="RMI-CNTRL-2.bmp"/></Case>	</Select> </Element>   <Mouse>   <Area Left="28" Right="68" Top="44" Bottom="84">   <Cursor Type="Hand"/>   <Click>3 (>L:C17, number) (L:RMI-CNTRL-1-L,bool) ! (>L:RMI-CNTRL-1-L,bool) }</Click>   </Area>   <Area Left="128" Right="168" Top="44" Bottom="84">   <Cursor Type="Hand"/>   <Click>3 (>L:C17, number) (L:RMI-CNTRL-1-R,bool) ! (>L:RMI-CNTRL-1-R,bool) }</Click>   </Area>   </Mouse>   <copyright>(c)2009 Engjell Berisha</copyright></Gauge>

Here are all the images I used:http://i18.photobucket.com/albums/b111/EV0317/FLAG-1.jpghttp://i18.photobucket.com/albums/b111/EV0317/FLAG-2.jpghttp://i18.photobucket.com/albums/b111/EV0317/FLAG-3.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-1.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-2.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-CARD.jpghttp://i18.photobucket.com/albums/b111/EV0...RMI-CNTRL-1.jpghttp://i18.photobucket.com/albums/b111/EV0...RMI-CNTRL-2.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-CNTRL.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-DASHED.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI-MASK.jpghttp://i18.photobucket.com/albums/b111/EV0317/RMI.jpgOnce again there are complex Lvar's which govern my gauge so the coding would need to be dumb-down a little bit, such as my IRU lvars and my PWR and BAT-PWR lvars. And then replaced with the appropriate variables.

HiThanks for posting the code/images but didn't you see my reply!? I had already done it LOLThanks again!

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.