- Messages
- 1,468
- Country

Now that my switch is working I have noticed an anomaly which I have tried to resolve without success. If say I switch to Gen1 and gen1 is live I will get a voltage. If whilst the switch is selected to gen1 it goes off line then the voltage stays the same whereas it should of course go to zero.
This is the code for gen2 which gives an example and forces me to reset the switch if I think there is a voltage change.
This is an attempt to force the voltage to change without the switch changing its postion which doesn't work. A fourth attempt. It seemed to work in my mind but then with all the stuff I am having to take for my current ailment being two thirds the way through chemotherapy my mind isn't as straight as is should be probably
This is the code for gen2 which gives an example and forces me to reset the switch if I think there is a voltage change.
Code:
<Element>
<Select>
<Value>(A:Electrical genalt2 bus voltage,volts) 0 == if{ (A:Electrical genalt2 bus voltage,volts) (>L:Electrical genalt2 bus voltage,volts) } (A:Electrical genalt2 bus voltage,volts) 0 >
if{ (A:Electrical genalt2 bus voltage,volts) 87 + (>L:Electrical genalt2 bus voltage,volts) }</Value>
</Select>
</Element>This is a separate control gauge
<Click>0 (>G:Var1) 1 (>L:Sound_click,enum) 0 (>L:AC_volts,number) (L:E2GEN_running,bool) 1 ==
if{ (A:Electrical genalt2 bus voltage,volts) 87 + (>L:AC_volts,number) 5 (>L:needle flicker2, volts) }</Click>
This is an attempt to force the voltage to change without the switch changing its postion which doesn't work. A fourth attempt. It seemed to work in my mind but then with all the stuff I am having to take for my current ailment being two thirds the way through chemotherapy my mind isn't as straight as is should be probably

Code:
<Value>(L:Electrical genalt1 bus voltage,volts) (L:AC_volts,number) > (L:Electrical genalt1 bus voltage,volts) (L:AC_volts,number) < | (L:X_check2,bool) 1 == and if{ 1 (>G:Var1) 2 (>L:X_check2,bool) }</Value>
Click>1 (>G:Var1) 1 (>L:Sound_click,enum) 0 (>L:AC_volts,number) (L:E1GEN_running,bool) 1 ==
if{ (L:Electrical genalt1 bus voltage,volts) (>L:AC_volts,number) 6 (>L:needle flicker2, volts) (L:X_check2,bool) 2 ==
if{ 1 (>L:X_check2,bool) } }</Click>
Last edited:

