Sign in to follow this  
williamlynn

min/max display on gauges

Recommended Posts

MIN/MAX pointers are available on some components(gauges); can you point me in the right direction on what expression to put in the min or max expression window.

Do you have code to capture min/max values on a daily basis.

Thanks

Bill

Share this post


Link to post
Share on other sites

You can really put anything in min/max. I sometimes even use these to mark setpoints and other non-min/max type values. But, if you want min/max, you can just put in the min/max formulas. Lets say your gauge is displaying mychannel[0]:

min(mychannel)

would return the minimum value for mychannel across its entire history.

If you just want today's min, you'd do something like this:

min(mychannel[0h,0h+86400])

0h converts to midnight today. 0h+86400 is midnight tonight (because there are 86400 seconds in a day). I'm then subsetting by time: asking DF to give me all the points between midnight today and midnight tomorrow (24 hrs), and then taking the min() of those points. Max is the same, just replace min with max. You can put these expressions right into the edit box in the gauges. You can also, of course, put them in the expression of a variable value component to display the value as a number.

Share this post


Link to post
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
Sign in to follow this