September 12, 200619 yr Hi all.I am trying to do something I thought was simple. Adding prop rpm to the tooltip section (See gauge xml below)of this gauge from Rick Piper's great Armsrong Whitworth Argosy.When you hover the mouse over the gauge now, all you get is "No2RPM" and I would like to get the rpm like the gauge with his excellent HS748.I have a real good XML editor, Altova XMLSpy so editing is no problem.Any help would be great, I think I am missing something simple.<Gauge Name="No2_RPM_Indicator" Version="3.0"> <Image Name="RPM_Background.bmp" ImageSizes="143,143" Luminous="0"/> <Element> <Position X="72" Y="72"/> <Image Name="RPM_Needle2.bmp" PointsTo="East" ImageSizes="62,13," Luminous="0"> <Axis X="7" Y="6.5"/> <Rotate> <Value Minimum="-7520" Maximum="9390">(A:GENERAL ENG2 RPM,RPM) 7520 &ampgt; (L:No2_HP_Cock, number) 1 &lt; (A:general eng2 propeller lever position, percent) 0 &gt; &amp;&amp; &amp;&amp; if{ (A:general eng2 throttle lever position,percent) 93.8 * } els{ (A:GENERAL ENG2 RPM,RPM) 200 &lt; (L:No2_HP_Cock, number) 2 &lt; &amp;&amp; if{ (A:Eng2 oil pressure,PSI) 7520 - } els{ (A:GENERAL ENG2 RPM,RPM) 7520 - } } <Failures> <SYSTEM_ENGINE Action="0"/> <Nonlinearity> <Item Value="-7520" X="71" Y="8"/> <Item Value="0" X="99" Y="17"/> <Item Value="3752" X="112" Y="23"/> <Item Value="4502.4" X="113" Y="24"/> <Item Value="8442" X="119" Y="34"/> <Item Value="9380" X="121" Y="36"/> <Delay DegreesPerSecond="10"/> <Element> <Position X="72" Y="72"/> <Image Name="RPM_Needle1.bmp" PointsTo="East" ImageSizes="66,10," Luminous="0"> <Axis X="7" Y="5"/> <Rotate> <Value Minimum="-7520" Maximum="9380">(A:GENERAL ENG2 RPM,RPM) 7520 &gt; (L:No2_HP_Cock, number) 1 &lt; (A:general eng2 propeller lever position, percent) 0 &gt; &amp;&amp; &amp;&amp; if{ (A:general eng2 throttle lever position,percent) 93.8 * } els{ (A:GENERAL ENG2 RPM,RPM) 200 &lt; (L:No2_HP_Cock, number) 2 &lt; &amp;&amp; if{ (A:Eng2 oil pressure,PSI) 7520 - } els{ (A:GENERAL ENG2 RPM,RPM) 7520 - } } <Failures> <SYSTEM_ENGINE Action="0"/> <Nonlinearity> <Item Value="-7520" X="71" Y="8"/> <Item Value="-7500" X="131" Y="48"/> <Item Value="0" X="11" Y="76"/> <Item Value="3752" X="109" Y="21"/> <Item Value="4502.4" X="121" Y="36"/> <Item Value="8442" X="100" Y="125"/> <Item Value="9380" X="70" Y="131"/> <Delay DegreesPerSecond="26"/> //---------------------------PROPELLER CONTROL UNIT----DART 520-------------- <Element> <Select> <Value>(A:general eng2 throttle lever position,percent) 91 &lt; (A:general eng2 propeller lever position, percent) 0 &gt; (L:No2_HP_Cock, number) 1 &lt; (A:Sim on ground, bool) 0 &gt; (L:Emergency_Power, enum) 1 &lt; &amp;&amp; &amp;&amp; &amp;&amp; &amp;&amp; if{ 16384 (&gt;K:PROP_PITCH2_SET) } els{ (A:general eng2 throttle lever position,percent) 90 &gt; (A:general eng2 propeller lever position, percent) 0 &gt; (L:No2_HP_Cock, number) 1 &lt; (A:Airspeed true,knots) 25 &gt; (A:Airspeed true,knots) 140 &lt; (A:ENG2 TORQUE, ft-lbs) 499 &gt; &amp;&amp; &amp;&amp; &amp;&amp; &amp;&amp; &amp;&amp; if{ 11960 (&gt;K:PROP_PITCH2_SET) } els{ (A:general eng2 throttle lever position,percent) 68 &gt; (A:general eng2 propeller lever position, percent) 0 &gt; (L:No2_HP_Cock, number) 1 &lt; (A:Sim on ground, bool) 1 &lt; (A:ENG2 TORQUE, ft-lbs) 499 &gt; (A:Airspeed true,knots) 139 &gt; &amp;&amp; &amp;&amp; &amp;&amp; &amp;&amp; &amp;&amp; if{ (A:general eng2 throttle lever position,percent) 95.07 / 16384 * (&gt;K:PROP_PITCH2_SET) } els{ (A:general eng2 throttle lever position,percent) 69 &lt; (A:general eng2 propeller lever position, percent) 0 &gt; (L:No2_HP_Cock, number) 1 &lt; (A:Sim on ground, bool) 1 &lt; (A:ENG2 TORQUE, ft-lbs) 499 &gt; (A:Airspeed true,knots) 139 &gt; &amp;&amp; &amp;&amp; &amp;&amp; &amp;&amp; &amp;&amp; if{ 11957 (&gt;K:PROP_PITCH2_SET) } } } } <Mouse> <Tooltip>No2 RPM Thanks.Dave.
September 12, 200619 yr Commercial Member It's displaying exactly what you are telling it to:No2 RPMWhatever you place between the opening and closing tooltip tags is what will be displayed. Ed Wilson Mindstar AviationMy Playland - I69
September 12, 200619 yr Hi.I guess I didn't make myself as clear as I should have.I have tried all kinds of options in the tooltip box such as:No1RPM ((L:GENERAL ENG1 RPM number) 0 max 20000 min)No1RPM ((L:No1_Turbine_RPM, number) 0 max 20000 min)No1RPM ((L:No1_Turbine_RPM, number)-7520 max 9390 min)and so on, with no luck.I just posted the gauge xml "as is". Dave.
September 12, 200619 yr Commercial Member Well, I don't do XML but a couple things I see:1) You're calling GENERAL ENG1 RPM as an L var not an A var, it's an A var.2) You're requesting it as a number here, but above as RPM.3) You're setting max value to 0 and min value 20000, is that correct?4) Would it be better to use the format within the tooltip to construct a display string? Ed Wilson Mindstar AviationMy Playland - I69
September 28, 200619 yr Try this code: %Engine RPM %((A:General eng rpm:1,RPM))%!d!%The whole tooltip all in one line of course.Herbert
September 28, 200619 yr Author Hi,Or(from the SDK):or Propeller 1 RPM %((A:PROP1 RPM, rpm))%!d! RPMHope it helps,Jan"Beatus ille qui procul negotiis..." Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment