Product Features
...
DeviceHub
Tags
Tag Formula Variables
2min
when you add tags docid\ h5heqicxrcy3nch9kbg9i , you have the option of adding a formula to process the generated data you can use the following variables value the current tag value timestamp the time the tag value was generated represented in unix time in milliseconds you can use the following functions note for additional functions on tag values such as rounding and data conversions, you can use analytics docid\ dxce9032oqiligimolvlm or the flows manager docid\ q4jyt 6f9weaqu53lw3b function description use sin (sine) the ratio of the side opposite a given angle (in a right angled triangle) to the hypotenuse analysis and control of periodic processes cos (cosine) the ratio of the side adjacent to an acute angle (in a right angled triangle) to the hypotenuse analysis and control of periodic processes sqrt (square root) the square root of a number is the factor that you can multiply by itself to get that number identify deviations from expected values or detect abnormal conditions tan (tangent) the ratio of the sine of an angle to the cosine of that angle used in calibration formulas to correct or compensate for non linearities power a function with a single term that is the product of a real number, a coefficient, and a variable raised to a fixed real number power( x ) is equivalent to 10^x perform exponentiation when converting values between different units or applying non linear scaling log (logarithm) the inverse function to exponentiation log( x ) is equivalent to the natural logarithm of x (a logarithm with base e ) perform logarithmic scaling or conversion when there is a non linear relationship between the register value and the desired output exp (exponential) calculates the exponential growth or decay of a given set of data exp( x ) is equivalent to the exponential function e^x perform exponential scaling or conversion when there is a non linear relationship between the register value and the desired output