Sign in to follow this  
Guest Lasse140

Ampere/Voltage Switch

Recommended Posts

I have made a Gauge showing Amperes (Battery load) and voltage (Main Bus), using two needles and with one set of XML for each function.Originally it is a combined gauge with one needle and a switch for switching between Volts and Amperes reading.Now I need some assistance in how to code the switch-function to shift in between the two needles in the same gauge.Or is there perhaps a better way to code such a gauge and switch?Lars F

Share this post


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

Hi,Make a switch say amp volt selector:(L:A V SEL,bool) ! (>L:A V SEL,bool)Now steer the needle with:(L:A V SEL,bool) if{ (Battery Load formula) } els{ (Main Bus Voltage formula) } Mind the scales.Hope it helps,Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Hi Jan,yes it made the trick! Tnx a lot. And it also gave me another step in my XML learning learning curve. (If there now can be a step in a curve?)CheersLars F

Share this post


Link to post
Share on other sites

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