- Messages
- 1,468
- Country

I have two gauges. The first clicks on-plays the stall warning claxon-clicks off. The second is a stall warning light that is intended to come on for the duration of the test.
As usual I have it wrong. I can't get the logic to work. Your corrections most appreciated. The stall light L variable (L:STALL WARN TEST LIGHT,number) is not shown in the first gauge. Only the second. Help much appreciated.
vololiberista
As usual I have it wrong. I can't get the logic to work. Your corrections most appreciated. The stall light L variable (L:STALL WARN TEST LIGHT,number) is not shown in the first gauge. Only the second. Help much appreciated.
vololiberista
Code:
<Gauge Name="Stall Warning Test" Version="1.0">
<Element>
<Select>
<Value>(L:STALL WARN,number)</Value>
<Case Value="0">
<Image Name="STALL_WARN_OFF.bmp"/>
</Case>
<Case Value="1">
<Image Name="STALL_WARN_ON.bmp"/>
</Case>
</Select>
</Element>
//--------------
<Element>
<Select>
<Value>(G:Var1) 0 > if{ (G:Var1) 1 - (>G:Var1) (G:Var1) 0 == if{ 0 (>L:STALL WARN,number) } }</Value>
</Select>
</Element>
//--------------
<Mouse>
<Tooltip>Stall Warn Test</Tooltip>
<Cursor Type="Hand"/>
<Click Repeat="Yes">1 (>L:STALL WARN,number) 85 (>G:Var1) 1 (>L:Sound_stall2,enum)</Click>
</Mouse>
</Gauge>
Code:
<Gauge Name="stall warn light" Version="1.0">
<Element>
<Select>
<Value>
(L:STALL WARN TEST LIGHT,number) >
(L:STALL WARN,number)
and
</Value>
<Case Value="0">
<Image Name="AMBER_OFF.bmp"/>
</Case>
<Case Value="1">
<Image Name="AMBER_ON.bmp" Bright="Yes"/>
</Case>
</Select>
</Element>
</Gauge>



