ON THIS PAGE:
Format
Min_Sampled(Expr ,StartTime [,EndTime])
Returns
Returns the minimum value of the points in an expression over a range of time.
Inputs
Expr: The expression whose values should be processed to find the minimum.
Behaviour: Required
Dimension: Collection
Valid data types: Boolean, DateTime, Decimal, Integer, String, Duration
StartTime: The start time over which to produce the minimum.
Behaviour: Required
Dimension: Collection, SingleValue
Valid data types: DateTime, Decimal, Integer, String
EndTime: The end time over which to produce the minimum. If not specified, it assumes the current time.
Behaviour: Optional
Dimension: Collection, SingleValue
Valid data types: DateTime, Decimal, Integer, String
When to Use
This is a sample-based minimum, that is, it finds the minimum of all of the values within the time range. This is most appropriate when calculating the minimum of a batch-based quantity, such as the moisture content of coal shipments.
Examples
Expression: Min_Sampled(Expr, Time() - 60, Time())
Result: Minimum over the last minute (60 seconds).
Expression: Min_Sampled(Expr, Time() - 60)
Result: Minimum over the last minute (60 seconds).
Expression: Min_Sampled(Expr, Midnight(Time()))
Result: Minimum since midnight (the start of the day).
Expression: Min_Sampled({tag, sampleMethod = "Raw"}, Time() – 60)
Result: Minimum of the raw values over the last minute.
Expression: Min_Sampled(Sampling(Expr, "raw"), Time() - 60)
Result: Minimum of the raw values over the last minute.