X out of Y code help
Need X out of Y coding model to raise custom alarm in Thing Worx. The values should be continuously recorded and need to raise a custom alarm if X out of the Y values breach the given limit. Example: X:3 & Y:5 and Values:[4,5,5,4,2], lets consider the limit to be 4 and type is greater or equal. So we can see that 4 values here are out of safe range, so need to raise a custom alarm. Ideally its little more complex than this, to consider all the parameters and condition.
Has anyone ever developed something like this? if so please share your modelling technique.

