- Messages
- 238
- Country

Okay, I signed up to fix a gauge. I'm new to gauge development so my learning curve is pretty high right now, to say the least. I tried this little experiment to see if I could make some basics work. The first four Elements all have a Visibility condition. Only the first one works. The other 3 never become visible. The last element (has no Visibility condition) is just to display what the DTRANSMODE variable is set to (it's always 0,1,2, or 3) and when I click a button it increments and, when it goes above 3 I reset it back to 0. Each time it is 0 I see the "PRESSURE ALT" and then it goes to 1,2,3... and nothing is displayed. There must be something really basic that I'm missing.
Really appreciate any help.
Gregg
EDIT: Here's what I see:
DTRANSMODE=0
DRANSMODE=1
I even set it to 1 using LINDA just to make sure it's exactly 1. In the second screen you can see the value of DTRANSMODE is 1 and yet FLIGHT TIME is not displayed.
EDIT2: Well, I find this bizarre. If I do this to the string to be displayed then it works (albeit with an extra unwanted number at the end)...
Change
%FLIGHT TIME%
to
FLIGHT TIME %((L: DTRANSMODE,number))%!d!
Really appreciate any help.
Gregg
EDIT: Here's what I see:
DTRANSMODE=0
DRANSMODE=1
I even set it to 1 using LINDA just to make sure it's exactly 1. In the second screen you can see the value of DTRANSMODE is 1 and yet FLIGHT TIME is not displayed.
EDIT2: Well, I find this bizarre. If I do this to the string to be displayed then it works (albeit with an extra unwanted number at the end)...
Change
%FLIGHT TIME%
to
FLIGHT TIME %((L: DTRANSMODE,number))%!d!
Code:
<Element>
<Visible>(L:DTRANSMODE,number) 0 == </Visible>
<Position X="555" Y="40"/>
<Text X="190" Y="220" Length="13" Font="Glass Gauge" FontSize="28" Bold="True" Adjust="Center" Color="#e8e65f" Bright="Yes" Fixed="Yes">
<String>%PRESSURE ALT%</String>
</Text>
</Element>
<Element>
<Visible>(L:DTRANSMODE,number) 1 == </Visible>
<Position X="555" Y="40"/>
<Text X="190" Y="220" Length="13" Font="Glass Gauge" FontSize="28" Bold="True" Adjust="Center" Color="#e8e65f" Bright="Yes" Fixed="Yes">
<String>%FLIGHT TIME%</String>
</Text>
</Element>
<Element>
<Visible>(L:DTRANSMODE,number) 2 == </Visible>
<Position X="555" Y="40"/>
<Text X="190" Y="220" Length="13" Font="Glass Gauge" FontSize="28" Bold="True" Adjust="Center" Color="#e8e65f" Bright="Yes" Fixed="Yes">
<String>%COUNT UP%</String>
</Text>
</Element>
<Element>
<Visible>(L:DTRANSMODE,number) 3 == </Visible>
<Position X="555" Y="40"/>
<Text X="190" Y="220" Length="13" Font="Glass Gauge" FontSize="28" Bold="True" Adjust="Center" Color="#e8e65f" Bright="Yes" Fixed="Yes">
<String>%COUNT DOWN%</String>
</Text>
</Element>
<Element>
<Position X="555" Y="60"/>
<Text X="190" Y="220" Length="13" Font="Glass Gauge" FontSize="28" Bold="True" Adjust="Center" Color="#e8e65f" Bright="Yes" Fixed="Yes">
<String>%((L:DTRANSMODE,number))%!d!</String>
</Text>
</Element>
Last edited:


