• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX RPM Warning Lights (XML)

Messages
76
Country
unitedkingdom
Hi all,

Well hit the edge of my knowledge I am replicating a Seneca V and need to add warning lights to the gauge. I have added the bmps and correct location but I am at a loss on how to make the work.
Ideally need them off when Battery is off then green on up to 2600 RPM and any then red when over 2600.

Sorry to be a pain I just cant find a similar gauge that I can see how it is achieved. Code and BMPs below

Many thanks
Matt

XML:
<Gauge Name="PA34V RPM Indicator" Version="1.0">
 <Image Name="RPM_Background.bmp"/>
<Element>
 <Position X="150" Y="147"/>
<Image Name="RPM_Needle.bmp" PointsTo="East">
 <Axis X="0" Y="9"/>
 </Image>
<Rotate>
 <Value Minimum="0" Maximum="27">(A:General eng1 rpm,RPM) 100 / </Value>
<Nonlinearity>
 <Item Value="0" X="206" Y="65"/>
 <Item Value="5" X="209" Y="65"/>
 <Item Value="12" X="242" Y="202"/>
 <Item Value="18" X="126" Y="249"/>
 <Item Value="24" X="42" Y="158"/>
 <Item Value="27" X="61" Y="95"/>
 </Nonlinearity>
 </Rotate>
 </Element>
<Element>
 <Position X="0" Y="0"/>
 <Image Name="RPM_cover.bmp"/>
 </Element>
<Element>
 <Position X="144" Y="35"/>
 <Image Name="green.bmp"/>
 </Element>
<Element>
 <Position X="144" Y="35"/>
 <Image Name="red.bmp"/>
 </Element>
<Mouse>
 <Tooltip ID="TOOLTIPTEXT_TACHOMETER_RPM"/>
 </Mouse>
 </Gauge>

RPM_background
ReCAC2w.png


RPM_Needle
efGF0np.png


RPM_cover
WywqA0Z.png


green
HYy3MEe.png


red
HJlKUr5.png
 
Try ,
Code:
    <Element>
        <Position X="144" Y="35"/>
-         <Select>
           <Value>(A:Electrical master battery,bool) 1 == (A:General eng1 rpm,RPM) 2600 &lt; and</Value>
-           <Case Value="1">
             <Image Name="green.bmp"/>
            </Case>
          </Select>
    </Element>
    <Element>
        <Position X="144" Y="35"/>
-         <Select>
           <Value>(A:Electrical master battery,bool) 1 == (A:General eng1 rpm,RPM) 2600 &gt; and</Value>
-           <Case Value="1">
             <Image Name="red.bmp"/>
            </Case>
          </Select>
    </Element>

Cheers
Karol
 
Thank you so so much Karol works perfectly you da man

Finished code below incase any one else needs it at some time


XML:
<Gauge Name="PA34V RPM Indicator" Version="1.0">
<Image Name="RPM_Background.bmp"/>
<Element>
<Position X="150" Y="147"/>
<Image Name="RPM_Needle.bmp" PointsTo="East">
<Axis X="0" Y="9"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="27">(A:General eng1 rpm,RPM) 100 / </Value>
<Nonlinearity>
<Item Value="0" X="206" Y="65"/>
<Item Value="5" X="209" Y="65"/>
<Item Value="12" X="242" Y="202"/>
<Item Value="18" X="126" Y="249"/>
<Item Value="24" X="42" Y="158"/>
<Item Value="27" X="61" Y="95"/>
</Nonlinearity>
</Rotate>
</Element>
<Element>
<Position X="0" Y="0"/>
<Image Name="RPM_cover.bmp"/>
</Element>
<Element>
<Position X="144" Y="35"/>
<Select>
<Value>(A:Electrical master battery,bool) 1 == (A:General eng1 rpm,RPM) 2600 &lt and</Value>
<Case Value="1">
<Image Name="green.bmp"/>
</Case>
</Select>
</Element>
<Element>
<Position X="144" Y="35"/>
<Select>
<Value>(A:Electrical master battery,bool) 1 == (A:General eng1 rpm,RPM) 2600 &gt and</Value>
<Case Value="1">
<Image Name="red.bmp"/>
</Case>
</Select>
</Element>
<Mouse>
<Tooltip ID="TOOLTIPTEXT_TACHOMETER_RPM"/>
</Mouse>
</Gauge>
 
Last edited:
Back
Top