atom-1.0.13: An EDSL for embedded hard realtime applications.

Copyright(c) 2013 Tom Hawkins & Lee Pike
Safe HaskellNone
LanguageHaskell98

Language.Atom.Common.Threshold

Description

Time integrated threshold functions typically used in condition monitoring.

Synopsis

Documentation

boolThreshold :: Name -> Int32 -> Bool -> E Bool -> Atom (E Bool) Source

Boolean thresholding over time. Output is set when internal counter hits limit, and cleared when counter is 0.

doubleThreshold :: Name -> Double -> E Double -> Atom (E Bool) Source

Integrating threshold. Output is set with integral reaches limit, and cleared when integral reaches 0.