September 28, 200619 yr 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
September 28, 200619 yr 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..." Jan "Beatus ille qui procul negotiis..."
September 29, 200619 yr 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
Create an account or sign in to comment