• 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.

Using (P:Absolute time, seconds) in conjuction with text

Messages
278
Country
ca-britishcolumbia
Hi,
I am trying to create a start up screen for a gauge i am working on. What I would like it to do is once power is turned on:

Blank Screen for 5 seconds
Display for 10 seconds "Greg's Silly Little Gauge version 12.0 \n Warming Up ... Please Wait"
Blank for a second
Display until the button pressed "Press Function to Start"

Does anyone know if it is possible to have a guage do this? I have been messing around with the (P:Absolute time, seconds) in different configurations, but do not understand it enough to make it work. Any help or comments greatly appreaciated.

Cheers
Greg
 
When the gauge is started log the startup time:
(P:Absolute time, seconds) (>L:Start Time, seconds)
Also activate the startup secuence:
1 (>L:Start Sequence, number)

Then you add an element for each step in the startup sequence.
Each element's visibility is based on the time.
1st blank screen:
<Visible>(P:Absolute time, seconds) (L:Start Time, seconds) 5 + &lt; (L:Start Sequence, number) 1 == &amp;&amp;</Visible>
Startup screen:
<Visible>(P:Absolute time, seconds) (L:Start Time, seconds) 5 + &gt; (P:Absolute time, seconds) (L:Start Time, seconds) 15 + &lt; &amp;&amp; (L:Start Sequence, number) 1 == &amp;&amp;</Visible>
2nd blank screen:
<Visible>(P:Absolute time, seconds) (L:Start Time, seconds) 15 + &gt; (P:Absolute time, seconds) (L:Start Time, seconds) 16 + &lt; &amp;&amp; (L:Start Sequence, number) 1 == &amp;&amp;</Visible>
Wait for buttonpress screen:
<Visible>(P:Absolute time, seconds) (L:Start Time, seconds) 16 + &gt; (L:Start Sequence, number) 1 == &amp;&amp;</Visible>

The buttonpress from the user then deactivates the startup sequence:
(P:Absolute time, seconds) (L:Start Time, seconds) 16 + &gt; if{ 0 (>L:Start Sequence, number) }

The working display is then shown in another element:
<Visible>(P:Absolute time, seconds) (L:Start Time, seconds) 16 + &gt; (L:Start Sequence, number) 0 == &amp;&amp;</Visible>
 
Thanks for the guidance.

Thank you very much for the guidance. I have written the code, but obviously missing something as it won't work. I am sure it is something very obvious, See below:

Code:
<!--**************** Multi-Function Display Start-up ****************-->  
<Element Name="Startup">
  <Position X="0.000" Y="0.000"/>
  <Visible>(A:CIRCUIT AVIONICS ON, bool)</Visible>
  <Element Name="Bezel On">
    <Position X="0.000" Y="0.000"/>
    <Visible>(L:MFDOffOn,bool)</Visible>
    <Image Name="Radar_Back.bmp" Bright="Yes">
    </Image>
    <Element>
      <Position X="0.000" Y="0.000"/>
      <Visible>(P:Absolute time,seconds) (L:MFDDisplayStart, seconds) 5 + &lt; (L:MFDStartSequence, number) 1 == &amp;&amp;</Visible>
      <FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
      <String></String>
      </FormattedText> 
      <Element>
        <Position X="225.00" Y="300.00" />
        <Visible>
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 5 + &gt; 
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &lt; &amp;&amp;
          (L:MFDStartSequence, number) 1 == &amp;&amp;
        </Visible>
	<FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	<String>Anything You want to say</String>
	</FormattedText>
        <Element>
          <Position X="225.00" Y="300.00" />
          <Visible>
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &gt; 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 16 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == &amp;&amp;
          </Visible>
	  <FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	  <String></String>
	  </FormattedText> 
          <Element>
            <Position X="225.00" Y="300.00" />
            <Visible>
              (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 16 + &gt; 
              (L:MFDStartSequence, number) 1 == &amp;&amp;
            </Visible>
	    <FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	    <String>Press the "Function" Button to Start</String>
	    </FormattedText> 
          </Element>
        </Element>
      </Element>
    </Element>
  </Element>
</Element>

Code:
<Mouse>
  <Area Left="93" Top="676" Width="40" Height="40">
    <Visible>(A:Avionics Master Switch,bool)</Visible>
    <Cursor Type="Hand"/> 
    <Tooltip>Power Switch</Tooltip>
    <Click>
      (L:MFDOffOn,bool) ! (&gt;L:MFDOffON,bool) 
      (P:Absolute time, seconds) (>L:MFDDisplayStart, seconds) 1 (>L:MFDStartSequence, number)
    </Click>
  </Area>

Any suggestions. Thanks again for your help.

Greg
 
Last edited:
Some Progress made in the last couple hours

I made some progress with this. In jeroen79, thanks again, sample I removed the &amp;&amp; from the first blank screen and it followed through to the 2nd blank screen. From there different attempts have failed to allow this to continue to the final screen.
Blue indicates the working portion. Anyy suggestions? thanks again

Greg

Code:
[COLOR="Blue"]<Element Name="Startup">
  <Position X="0.000" Y="0.000"/>
  <Visible>(A:CIRCUIT AVIONICS ON, bool)</Visible>
  <Element Name="Bezel On">
    <Position X="0.000" Y="0.000"/>
    <Visible>(L:MFDOffOn,bool)</Visible>
    <Image Name="Radar_Back.bmp" Bright="Yes">
    </Image>
    <Element>
      <Position X="0.000" Y="0.000"/>
      <Visible>(P:Absolute time,seconds) (L:MFDDisplayStart, seconds) 5 + &lt; (L:MFDStartSequence, number) 1 ==</Visible>
      <FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
      <String></String>
      </FormattedText> 
      <Element>
        <Position X="225.00" Y="300.00" />
        <Visible>
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 5 + &gt; 
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &lt; &amp;&amp;
          (L:MFDStartSequence, number) 1 == &amp;&amp;
        </Visible>
	<FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	<String>Anything You want to say</String>
	</FormattedText>
        <Element>[/COLOR]
          <Position X="225.00" Y="300.00" />
          <Visible>
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &gt; 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 16 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == &amp;&amp;
          </Visible>
	  <FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	  <String></String>
	  </FormattedText> 
          <Element>
            <Position X="225.00" Y="300.00" />
            <Visible>
              (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 16 + &gt; 
              (L:MFDStartSequence, number) 1 == &amp;&amp;
            </Visible>
	    <FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	    <String>Press the "Function" Button to Start</String>
	    </FormattedText> 
          </Element>
        </Element>
      </Element>
    </Element>
  </Element>
</Element>
 
Last edited:
Um, this can never be "true"...

Code:
(P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &gt; 
(P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 16 + &lt; &amp;&amp;

What whole number falls between 15 and 16??? :eek:
 
Thanks Bill, just figured that out, by chance actually, added another sequance and changed the numbers and it worked. I also had to seperated the element (i.e: <element>the rest of the stuff</element>) rather than carrying on to the end. I am almost there as it works straight through to the end, but the final "Press Menu Button to Start" on stays on for a couple seconds. Any thoughts?

Thanks Greg

Code:
<Element>
  <Position X="225.00" Y="300.00" />
[COLOR="Red"]  <Visible>
    (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt; 
    (L:MFDStartSequence, number) 1 ==
  </Visible>[/COLOR]
  <FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
  <String>Press the MENU Button to Start</String>
  </FormattedText> 
</Element
>
 
I dunno, perhaps a missing conjunction? You have two conditions, both of which must be "true" for that message to be displayed. Without the conjunction "and" only one condition is being tested...

Code:
  <Visible>
    (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt; 
    (L:MFDStartSequence, number) 1 == and
  </Visible>
 
Last edited:
Thanks got it!!!

In the end remove the "&amp;&amp;" out of any segment where the text is not going to be displayed (Blank Screen) and it works flawlessly.

The final result:

Code:
<Element Name="Startup">
  <Position X="0.000" Y="0.000"/>
  <Visible>(A:CIRCUIT AVIONICS ON, bool)</Visible>
  <Element Name="Bezel On">
    <Position X="0.000" Y="0.000"/>
    <Visible>(L:MFDOffOn,bool)</Visible>
    <Image Name="Radar_Back.bmp" Bright="Yes">
    </Image>
    <Element>
      <Position X="0.000" Y="0.000"/>
      <Visible>(P:Absolute time,seconds) (L:MFDDisplayStart, seconds) 3 + &lt; (L:MFDStartSequence, number) 1 ==</Visible>
      <Element>
        <Position X="225.00" Y="300.00"/>
        <Visible>
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 3 + &gt; 
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 13 + &lt; &amp;&amp;
          (L:MFDStartSequence, number) 1 == &amp;&amp;
        </Visible>
	<FormattedText X="350" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	<String>Whatever you want to say</String>
	</FormattedText>
      </Element>
      <Element>
        <Position X="0.000" Y="0.000"/>
        <Visible>
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 13 + &gt; 
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &lt; &amp;&amp;
          (L:MFDStartSequence, number) 1 == 
        </Visible>
        <Element Name="CB Advertisment">
          <Position X="200.000" Y="300.000"/>
          <Visible>
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &gt; 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 25 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == &amp;&amp;
          </Visible>
          <FormattedText X="400" Y="400" Font="Arial Black" FontSize="48" Adjust="Center" Color="White" Bright="Yes">
          <String>Anything You want to say</String>
          </FormattedText>
        </Element> 
        <Element>
          <Position X="0.000" Y="0.000"/>
          <Visible>
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 25 + &gt; 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == 
          </Visible>
          <Element>
            <Position X="200.00" Y="300.00"/>
            <Visible>
              (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt;
              (L:MFDStartSequence, number) 1 == &amp;&amp;
            </Visible>
	    <FormattedText X="400" Y="400" Font="Arial Black" FontSize="36" Adjust="Center" Color="White" Bright="Yes">
	    <String>Press the "MENU" Button to Start</String>
	    </FormattedText> 
          </Element>
        </Element>
      </Element>
    </Element>
  </Element>
</Element>
 
Last edited:
Having the Menu Switch Inactive during Start-up

Will this same string make the Menu switch inactive during the Start-up sequance? Playing around with (P:Absolute time, seconds) again amongst other things with no luck. Thanks for any ideas or suggestions.

Greg

Code:
 <Area Left="150.000" Top="677.000" Width="65" Height="61">
    <Visible>
      (L:MFDOffOn,bool)
[COLOR="Red"](P:Absolute time,seconds)[/COLOR]
    </Visible>
    <Cursor Type="Hand"/>
    <Tooltip>Main Menu</Tooltip>
    <Click>
      (L:MFDMainMenu,bool) ! (&gt;L:MFDMainMenu,bool)
      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 26 + &gt; if{ 0 (>L:MFDStartSequence, number) }
    </Click>  
  </Area>
 
Last edited:
Still doing a bit of housekeeping with my gauge. I am still trying to have the menu and another inactive during the start up sequance. But can't get it to work properly. I can get it to deactivate or not at all. Anything obvious?

Thanks Greg

The ON/OFF Switch
Code:
<Mouse> 
  <Area Left="93" Top="676" Width="40" Height="40">
    <Visible>(A:Avionics Master Switch,bool)</Visible>
    <Cursor Type="Hand"/> 
    <Tooltip>Power Switch</Tooltip>
    <Click>
      (L:MFDOffOn,bool) ! (&gt;L:MFDOffON,bool) 
      (P:Absolute time, seconds) (>L:MFDDisplayStart, seconds) 1 (>L:MFDStartSequence, number)
[COLOR="Red"]      (P:Absolute time, seconds) (>L:BezelButtonsActive, seconds) 1 (>L:BezelButtonActiveSequence, number)[/COLOR]
    </Click>
  </Area>

Code:
The Menu Switch
  <Area Left="150.000" Top="677.000" Width="65" Height="61">
[COLOR="red"]    <Visible>
      (P:Absolute time, seconds) (L:BezelButtonsActive, seconds) 27 + &lt;
      (L:BezelButtonActiveSequence, number) 1 ==
(L:MFDOffOn,bool)
    </Visible>[/COLOR]
    <Cursor Type="Hand"/>
    <Tooltip>Main Menu</Tooltip>
    <Click>
      (L:MFDMainMenu,bool) ! (&gt;L:MFDMainMenu,bool)
      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 26 + &gt; if{ 0 (>L:MFDStartSequence, number) }
[COLOR="red"]      (P:Absolute time, seconds) (L:BezelButtonsActive, seconds) 26 + &gt; if{ 0 (>L:BezelButtonActiveSequence, number) }[/COLOR]
      0 (&gt;L:TrafficRadarPage,bool)
      0 (>L:AirportInfoMenu,bool)
      0 (>L:NearestAirportPage,bool)
      0 (>L:MapPage,bool)
      0 (>L:LayerTags,bool)
      0 (>L:TAWSPage,bool)
      0 (>L:TAWSMode, bool)
      (L:TAWSMode, bool)
      if{ (L:map_ZoomFactor,number) (>L:ZFactorOrig, number)
      (L:UpDateAlwaysOrig, bool) (>L:UpDateAlways, bool) }
      0 (L:TAWSCounter, bool)
      1 (TAWSRefresh, bool)
      0 (>L:TCASDisplay, bool)
    </Click>  
  </Area>
 
Again, no conjuctions in the visible code:

Code:
   <Visible>
      (P:Absolute time, seconds) (L:BezelButtonsActive, seconds) 27 + &lt;
      (L:BezelButtonActiveSequence, number) 1 ==
(L:MFDOffOn,bool)
    </Visible>

should be something like:

Code:
   <Visible>
      (P:Absolute time, seconds) (L:BezelButtonsActive, seconds) 27 + &lt;
      (L:BezelButtonActiveSequence, number) 1 == and
(L:MFDOffOn,bool) and
    </Visible>

I stopped there and didn't check the rest of the code. You cannot just list the conditions and expect proper things to happen (in this case the MFDOffON variable controlled the visibility all by itself).

Hope this helps,
 
I am getting really confused by this whole timer thing. Thanks Tom for your guidance, but really dont understand why this works in the start up section of the gauge:

Code:
 <Element>
      <Position X="0.000" Y="0.000"/>
      <Visible>(P:Absolute time,seconds) (L:MFDDisplayStart, seconds) 3 + &lt; (L:MFDStartSequence, number) 1 ==</Visible>
      <Element>
        <Position X="175.00" Y="300.00"/>
        <Visible>
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 3 + &gt; 
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 13 + &lt; &amp;&amp;
          (L:MFDStartSequence, number) 1 == &amp;&amp;
        </Visible>
	<FormattedText X="450" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	<String>Coos Bay Multi-Function Display Version 1.0 \n Warming Up ... Please Stand-by</String>
	</FormattedText>
      </Element>

but this won't work in the mouse section, please note rather than previously posted i decided to use the excisting timer sequance rather than having to different sets doing the same thing.

Code:
  <Area Left="150.000" Top="677.000" Width="65" Height="61">
[COLOR="Red"]    <Visible> 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 25 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == 
    </Visible>[/COLOR]
    <Cursor Type="Hand"/>
    <Tooltip>Main Menu</Tooltip>
    <Click>
      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt; if{ 0 (>L:MFDStartSequence, number) }
      (L:MFDMainMenu,bool) ! (>L:MFDMainMenu,bool)
      0 (>L:TrafficRadarPage,bool)
      0 (>L:AirportInfoMenu,bool)
      0 (>L:NearestAirportPage,bool)
      0 (>L:MapPage,bool)
      0 (>L:LayerTags,bool)
      0 (>L:TAWSPage,bool)
      0 (>L:TAWSMode, bool)
      (L:TAWSMode, bool)
      if{ (L:map_ZoomFactor,number) (>L:ZFactorOrig, number)
      (L:UpDateAlwaysOrig, bool) (>L:UpDateAlways, bool) }
      0 (>L:TAWSCounter, bool)
      1 (>TAWSRefresh, bool)
      0 (>L:TCASDisplay, bool)
    </Click>  
  </Area>

What am I missing? I have tried several different combinations including trying to trigger the (L:MDFMainMenu, bool) from the visiblity section. Any suggestions?

Thanks
Greg

Code:
<Mouse> 
  <Area Left="93" Top="676" Width="40" Height="40">
    <Visible>(A:Avionics Master Switch,bool)</Visible>
    <Cursor Type="Hand"/> 
    <Tooltip>Power Switch</Tooltip>

<---- In red turns the gauge on and initiates the timer sequance---->
[COLOR="red"]    <Click>
      (L:MFDOffOn,bool) ! (&gt;L:MFDOffON,bool) 
      (P:Absolute time, seconds) (>L:MFDDisplayStart, seconds) 1 (>L:MFDStartSequence, number)
    </Click>[/COLOR]
  </Area>
  <Area Left="150.000" Top="677.000" Width="65" Height="61">

<----In blue in my mind should have the main menu switch deacitvate for 25 seconds---->
   [COLOR="Blue"] <Visible> 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 25 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == 
    </Visible>[/COLOR]

    <Cursor Type="Hand"/>
    <Tooltip>Main Menu</Tooltip>
    <Click>

<---- Green deactivates the timer sequance---->
[COLOR="Green"]      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt; if{ 0 (>L:MFDStartSequence, number) }[/COLOR]

      (L:MFDMainMenu,bool) ! (>L:MFDMainMenu,bool)
      0 (>L:TrafficRadarPage,bool)
      0 (>L:AirportInfoMenu,bool)
      0 (>L:NearestAirportPage,bool)
      0 (>L:MapPage,bool)
      0 (>L:LayerTags,bool)
      0 (>L:TAWSPage,bool)
      0 (>L:TAWSMode, bool)
      (L:TAWSMode, bool)
      if{ (L:map_ZoomFactor,number) (>L:ZFactorOrig, number)
      (L:UpDateAlwaysOrig, bool) (>L:UpDateAlways, bool) }
      0 (>L:TAWSCounter, bool)
      1 (>TAWSRefresh, bool)
      0 (>L:TCASDisplay, bool)
    </Click>  
  </Area>
 
Last edited:
Code:
<----In blue in my mind should have the main menu switch deacitvate for 25 seconds---->
    <Visible> 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 25 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == 
    </Visible>

Try &gt; instead &lt;
&amp;&amp; is on the wrong place.

Code:
<---- In blue in my mind should have the main menu switch deacitvate for 25 seconds ---->
    <Visible> 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 25 + &gt;
            (L:MFDStartSequence, number) 1 == 
            &amp;&amp;
    </Visible>

There should be blank <--- Text -->.
 
Last edited:
Thanks, that worked as far as the timer disabling the button. Now unfortuantly I press the Menu button once and then it disables again :banghead:
What am I doing wrong for soemthing that seems simple.Any ideas greatly appreaciated.

Cheers
Greg

Code:
<Area Left="150.000" Top="677.000" Width="65" Height="61">
[COLOR="Red"]    <Visible> 
      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt;
      (L:MFDStartSequence, number) 1 == &amp;&amp;
    </Visible>[/COLOR]
    <Cursor Type="Hand"/>
    <Tooltip>Main Menu</Tooltip>
    <Click>
      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt; if{ 0 (>L:MFDStartSequence, number) }
      (L:MFDMainMenu,bool) ! (>L:MFDMainMenu,bool)
      0 (>L:TrafficRadarPage,bool)
      0 (>L:AirportInfoMenu,bool)
      0 (>L:NearestAirportPage,bool)
      0 (>L:MapPage,bool)
      0 (>L:LayerTags,bool)
      0 (>L:TAWSPage,bool)
      0 (>L:TAWSMode, bool)
      (L:TAWSMode, bool)
      if{ (L:map_ZoomFactor,number) (>L:ZFactorOrig, number)
      (L:UpDateAlwaysOrig, bool) (>L:UpDateAlways, bool) }
      0 (>L:TAWSCounter, bool)
      1 (>TAWSRefresh, bool)
      0 (>L:TCASDisplay, bool)
    </Click>  
  </Area>
 
Hmmh, not so easy!

Code:
(P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt; if{ 0 (>L:MFDStartSequence, number) }
Delete this line?


But what about this? Didn't find anything before in your code!

Code:
      (L:MFDMainMenu,bool) ! (>L:MFDMainMenu,bool)

Different solutions would be possible!

Edi
 
You asked a question to which no one has given you an answer yet...

Stuff in a "Mouse Section" only executes once whenever you use the mouse "click."

Stuff in an <Element> or <Update> section are executed 18 times per second. If you are wanting to use a timer it must be placed in either an <Element> or <Update> section.
 
Thanks Bill, Unfortuantly I am at a loss at how to create an update that will run the sequance when the power switch is turned on, then allow the menu button to function as intended basically turn the menu on or off as long as turn of some other pages when the button is activated.

Although this doesn't work, am I on the right track:

Update:
Code:
(L:MFDDisplayStart, seconds) 1 == if{ (P:Absolute time, seconds) (>L:MFDStartSequence, number)  }

Thanks Greg
 
Last edited:
Thanks Tom, What I am attempting to do is have some buttons on the bezel inactive during a start up sequance.

Currently when the power button is turned on the gauge displays:

1st: Blank screen
2nd: CB Multi Function display warming up.... Please stand by
3rd: Blank Screen
4th: www,coosbayhops.com /n Come check us out
5th: Blank screen
6th: Press Menu Button to Start

When the menu button is pressed is turns "off" the start up sequance and brings up the menu with various options.

The Start up screen:
Code:
<!--**************** Multi-Function Display Start-up ****************-->  
<Element Name="Startup">
  <Position X="0.000" Y="0.000"/>
  <Visible>(A:CIRCUIT AVIONICS ON, bool)</Visible>
  <Element Name="Bezel On">
    <Position X="0.000" Y="0.000"/>
    <Visible>(L:MFDOffOn,bool)</Visible>
    <Image Name="Radar_Back.bmp" Bright="Yes">
    </Image>
    <Element>
      <Position X="0.000" Y="0.000"/>
      <Visible>(P:Absolute time,seconds) (L:MFDDisplayStart, seconds) 3 + &lt; (L:MFDStartSequence, number) 1 ==</Visible>
      <Element>
        <Position X="175.00" Y="300.00"/>
        <Visible>
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 3 + &gt; 
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 13 + &lt; &amp;&amp;
          (L:MFDStartSequence, number) 1 == &amp;&amp;
        </Visible>
	<FormattedText X="450" Y="400" Font="Arial Black" FontSize="24" Adjust="Center" Color="White" Bright="Yes">
	<String>Coos Bay Multi-Function Display Version 1.0 \n Warming Up ... Please Stand-by</String>
	</FormattedText>
      </Element>
      <Element>
        <Position X="0.000" Y="0.000"/>
        <Visible>
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 13 + &gt; 
          (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &lt; &amp;&amp;
          (L:MFDStartSequence, number) 1 == 
        </Visible>
        <Element Name="CB Advertisment">
          <Position X="185.000" Y="300.000"/>
          <Visible>
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 15 + &gt; 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 25 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == &amp;&amp;
          </Visible>
          <FormattedText X="450" Y="400" Font="Arial Black" FontSize="48" Adjust="Center" Color="White" Bright="Yes">
          <String>www.coosbayhops.com \n Come Check Us Out</String>
          </FormattedText>
        </Element> 
        <Element>
          <Position X="0.000" Y="0.000"/>
          <Visible>
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 25 + &gt; 
            (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &lt; &amp;&amp;
            (L:MFDStartSequence, number) 1 == 
          </Visible>
          <Element>
            <Position X="165.00" Y="300.00"/>
            <Visible>
              (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt;
              (L:MFDStartSequence, number) 1 == &amp;&amp;
            </Visible>
	    <FormattedText X="480" Y="400" Font="Arial Black" FontSize="36" Adjust="Center" Color="White" Bright="Yes">
	    <String>Press the "MENU" Button to Start</String>
	    </FormattedText> 
          </Element>
        </Element>
      </Element>
    </Element>
  </Element>
</Element>

This all works fine with the On/Off switch activating the sequance:
Code:
<Mouse> 
  <Area Left="93" Top="676" Width="40" Height="40">
    <Visible>(A:Avionics Master Switch,bool)</Visible>
    <Cursor Type="Hand"/> 
    <Tooltip>Power Switch</Tooltip>
    <Click>
      (L:MFDOffOn,bool) ! (&gt;L:MFDOffON,bool) 
[COLOR="Red"]      (P:Absolute time, seconds) (>L:MFDDisplayStart, seconds) 1 (>L:MFDStartSequence, number)   [/COLOR]
  </Click>

and the menu button stopping the sequance:
Code:
  <Area Left="150.000" Top="677.000" Width="65" Height="61">
    <Visible> 
      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt;
      (L:MFDStartSequence, number) 1 == &amp;&amp;
    </Visible>
    <Cursor Type="Hand"/>
    <Tooltip>Main Menu</Tooltip>
    <Click>
      [COLOR="red"](P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt; if{ 0 (>L:MFDStartSequence, number) }[/COLOR]      (L:MFDMainMenu,bool) ! (>L:MFDMainMenu,bool)
      0 (>L:TrafficRadarPage,bool)
      0 (>L:AirportInfoMenu,bool)
      0 (>L:NearestAirportPage,bool)
      0 (>L:MapPage,bool)
      0 (>L:LayerTags,bool)
      0 (>L:TAWSPage,bool)
      0 (>L:TAWSMode, bool)
      (L:TAWSMode, bool)
      if{ (L:map_ZoomFactor,number) (>L:ZFactorOrig, number)
      (L:UpDateAlwaysOrig, bool) (>L:UpDateAlways, bool) }
      0 (>L:TAWSCounter, bool)
      1 (>TAWSRefresh, bool)
      0 (>L:TCASDisplay, bool)
    </Click>  
  </Area>

Now in conjuction with the above i would like the buttons on the bezel inactive during the 27 seconds of start up and this works as for as making the switch inactive:

Code:
  <Area Left="150.000" Top="677.000" Width="65" Height="61">
[COLOR="red"]    <Visible> 
      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt;
      (L:MFDStartSequence, number) 1 == &amp;&amp;
    </Visible>[/COLOR]
    <Cursor Type="Hand"/>
    <Tooltip>Main Menu</Tooltip>
    <Click>
      (P:Absolute time, seconds) (L:MFDDisplayStart, seconds) 27 + &gt; if{ 0 (>L:MFDStartSequence, number) }
      (L:MFDMainMenu,bool) ! (>L:MFDMainMenu,bool)
      0 (>L:TrafficRadarPage,bool)
      0 (>L:AirportInfoMenu,bool)

      blah blah to...... </area>

The problem now is although i get the button to be inactive for 27 seconds during the start-up, then becoming active. Once the button is pressed it becomes inactive again and won't allow me to activate it again, mainly to turn the main menu button On and Off and trun off any active screens:

Code:
(L:MFDMainMenu,bool) ! (>L:MFDMainMenu,bool)

Bill had kindly stated that i need a update portion or an element portion to allow this to happen. Although I am trying with my limited knowledge to create a update for this switch, so far have had no success. Hope this explains what I am attemting and any ideas would be greatly appreaciated.

Thanks again,
Greg
 
Back
Top