sys::Obj sys::Virtual sys::Component control::Reset
public class Reset
[niagaraIcon="module://icons/x16/control/math/reset.png"]
Reset re-scales in value to out value object
This function performs a "reset" on the input value.
"Reset" is a HVAC term for scaling a number between two limits.
When inMin < inA < inMax, the output value scales linearly between outMin and outMax.
If inA < inMin, the value is capped at outMin.
If inA > inMax, the value is capped at outMax.
To calculate out, the following equation is used: <pre>
(outMax-outMin) out = --------------- * (in - inMin) + outMin (inMax-inMin)
</pre>
public property float in
input
public property float inMax [config]
scaling constant inMax
public property float inMin [config]
scaling constant inMin
public property float out [readonly]
re-scaled output
public property float outMax [config]
scaling constant outMax
public property float outMin [config]
scaling constant outMin
public override void changed(Slot slot)
Behavior to execute when a property is changed externally
public virtual override void execute()
Execute is called once every scan.
public virtual override void start()
Callback when component is first started in an app.