March 7, 200521 yr hi to all,I need help to compile an .XML three positions switch (see the attached file).The switch is intended to distribute the Attitude signals toggling the Stand by_vacuum_pump in the upper position to:ADI,HSI compass,RMIVOR compassin the lower position to:RMIADF compass.The Mid position is for normal operations.By my .XML file until now the signals distribution works properly but the switch is moving only from Mid to upper position:the first time for:ADI,HSI and RMIVOR the second Time for:RMIADF. Another question is:Does exist a book or any other publication explaining clearly and easy the .XML gauge compiling in the FS9?Because the MS SDKs are very short and vague.Thanks for any helpG.Franco Corrias
March 7, 200521 yr Author Hi,1. Use (G:Var1), not bool.2. In the click event use 0 (>G:Var1), 1 (>G:Var1) and 2 (>G:Var1).3. Since you have 3 positions, you need 3 clickspots for the events, unless you want the switch come automatically in the mid position.The next code is an example of the last possibility (after 1 second):(Not tested)(P:Absolute time,seconds) (G:Var2) > if{ (G:Var1) 1 == (G:Var1) 2 == | if{ 0 (>G:Var1) } } (G:Var1)1 (>G:Var1) (P:Absolute time,seconds) 1 + (>G:Var2)2 (>G:Var1) (P:Absolute time,seconds) 1 + (>G:Var2)Hope it helps,Jan"Beatus Ille Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
March 7, 200521 yr Thanks alot I'm going right away to try your solution.Any suggestion for a book to learn .XML gauges?G.Franco
March 7, 200521 yr Author No, see subject nr.1, FAQ and solutions.Jan"Beatus Ille Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment