Calculate the time in hours spent in a particular value. Operators are =, >,<, <=, >=
Defines the time series data fed into the function. This can be a sensor ID or another function.
Number of data intervals considered in function
Sensor value (i.e. value, pressure, flow rate)
=, >, <, <=, >=
*Input data is optional in most cases. If Info360 detects that the first input is time series data, it will be applied to the function. Otherwise, the current active sensor's data will be used, which is often the case in Reference Charts.
Example Usage as an Expression:
TimeSpent(7, 0, ‘>’) finds the time spent in 'ON' position for the last 7 intervals.
TimeSpent(100, 0, ‘=’) finds the time the sensor is out of comm (no signal) where 0 is the out of comm value) for the last 100 intervals.
Example Reference Chart:
The following example shows a pump status feed, and a calculation of the total hours that the pump has been on over the past day. The TimeSpent output line becomes flat at some low points because the 24 hour interval is exactly spanning an off cycle; so as an old hour is removed from the total, a new hour is being added.
In this example, the TimeSpent function is replicated using the CountValue function (divided by 4 to get hours from 15 minute data).
For information on setting up custom equations and syntax, please refer to Analytical Functions.