GTHist

The GTHist function is part of the Trigger class.

It allows you to perform a simple 'greater than' comparison that includes hysteresis, to prevent your condition function from flickering on and off when values are near thresholds.

Parameters

NameDescription
valueThe value you want to compare
thresholdThe threshold you want to compare against
spanThe amount of hysteresis

Example

lambda o: o.GTHist(o.Value(),200,10)

In this example condition function, the value is being compared against '200'. When the value goes over 200, the output changes to True.

It will continue to output True until the value drops to 190 (the threshold minus the span)

Return

The function returns True or False

See Also