Hallo
I am new to XML programming and would like some help with a gauge I have created. It is a simple blinking lamp which should blink when any door is open.
I have a different element for each door. However, I would like to use only one element with all the conditions checked using "OR" statements.
E.g. Door 1 open OR Door 2 open OR Door 3 open etc.
My code is shown below. Any help appreciated.
I am new to XML programming and would like some help with a gauge I have created. It is a simple blinking lamp which should blink when any door is open.
I have a different element for each door. However, I would like to use only one element with all the conditions checked using "OR" statements.
E.g. Door 1 open OR Door 2 open OR Door 3 open etc.
My code is shown below. Any help appreciated.
Code:
<Gauge Name="Red Signal Lamp" Version="0.1">
<Image Name="Signal.bmp" Luminous="No" ImageSizes="159,230"/>
<!-- DISPLAY =============================================== -->
<Element>
<Image Name="Red_Lamp_Off.bmp" Luminous="Yes" ImageSizes="93,93"/>
<Position X="33" Y="32"/>
</Element>
<Element>
<Position X="33" Y="32"/>
<Visible>(A:CANOPY OPEN,bool) (P:Absolute time,seconds) 1 % 0.7 > ! and</Visible>
<Image Name="Red_Lamp_On.bmp" Luminous="Yes" ImageSizes="93,93"/>
</Element>
<Element>
<Position X="33" Y="32"/>
<Visible>(A:EXIT OPEN:1,bool) (P:Absolute time,seconds) 1 % 0.7 > ! and</Visible>
<Image Name="Red_Lamp_On.bmp" Luminous="Yes" ImageSizes="93,93"/>
</Element>
<Element>
<Position X="33" Y="32"/>
<Visible>(A:EXIT OPEN:2,bool) (P:Absolute time,seconds) 1 % 0.7 > ! and</Visible>
<Image Name="Red_Lamp_On.bmp" Luminous="Yes" ImageSizes="93,93"/>
</Element>
<Element>
<Position X="33" Y="32"/>
<Visible>(A:EXIT OPEN:3,bool) (P:Absolute time,seconds) 1 % 0.7 > ! and</Visible>
<Image Name="Red_Lamp_On.bmp" Luminous="Yes" ImageSizes="93,93"/>
</Element>
<Element>
<Position X="33" Y="32"/>
<Visible>(A:FOLDING WING RIGHT PERCENT, percent) 100 == (P:Absolute time,seconds) 1 % 0.7 > ! and</Visible>
<Image Name="Red_Lamp_On.bmp" Luminous="Yes" ImageSizes="93,93"/>
</Element>
</Gauge>



