Sign in to follow this  

Flashing Warning Light

Recommended Posts

I think someone here asked how to create a warning light that flashes. Well, I've discovered how to do this.Frustrated with my XML failures, I closed FS and restarted it some hours later when I had a moment to work on the EIS master warning light again. To my surprise, the warning light was FLASHING steadily on and off! Reloading FS must have engaged something.Anyway, here is the code that causes the warning light to flash:

<Element><Text Bright="Yes" X="60" Y="12" Length="10" Fixed="Yes" Font="Quartz" BackgroundColor="Black" Color="Red" Adjust="Center" VerticalAdjust="Center">			<String>%((A:indicated altitude, feet) 250 <= if{ (L:EIS Alarm, bool) ! (>L:EIS Alarm, bool) })%!+3d!</String>		 </Text></Element>

You see if this element is evaluated over and over, it will keep flipping the EIS Alarm value between one and zero at the gauge update rate as long as the aircraft is below 250 feet.Steve

Share this post

Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this