Jump to content

Introducing new maxKey(), maxValue(), minKey() and minValue() functions


Recommended Posts

Starting with Seeq R.21.0.44.0 release, user can specify maxValue() and maxKey() on a signal during a capsule to return the scalar values of maximum value and associated time stamp respectively.  The example below shows that on Temperature signal, during 16th October (capsule), maxValue() function results in 106.07 ºF and maxKey() function results in associated timestamp 2019-10-16 02:18 am i.e. when maximum temperature occurred.  See the 1st image for this example in Seeq:

Feel free to try out these formulas on your own:

$temperature.maxKey(capsule('2019-10-16T00:00Z','2019-10-17T00:00Z'))

$temperature.maxValue(capsule('2019-10-16T00:00Z','2019-10-17T00:00Z'))

Capture.JPG

Oh one more thing, you can also create signals that return one value from each capsule within a condition. Where value can be maxValue(), minValue(), maxKey(), minKey().

Below is one such example and an image showing that you can create signal that represents minimum values at minimum key (time) on daily basis:

$signal.aggregate(minValue(), $condition, minKey())

As always detailed information can be found in formula tool panel documentation search box in Seeq application.

Capture2.JPG

Still want more Seeq info?  Check out what else is new in R21.0.44.00: https://seeq12.atlassian.net/wiki/spaces/KB/pages/571375775/What+s+New+in+R21.0.44

 

 

Edited by Sanman Mehta
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...