Use Expressions to Control Switches
Give switches a State(S) parameter that can be referenced in expressions. When switch “SW1” is closed, it’s state(S) = 1. Switches whose state is expressed as “SW1.S” would actuate as if ganged with SW1. Makes possible separate sympathetic circuits, voltage threshold actuation, or any valid expression.
-
David commented
Inverted: 1 + (SW1.S * -1)
Other functions may require evaluation of a boolean expression or
definition of how state value will interpret real values other than 0 or 1.V Threshold: (to close at voltage above 450mV)
element.V > .450
element.V + .550
min((element.V + .550), 1)
sign(element.V - .450)