Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Historian

Maximum retrieval - query 3

  • Last UpdatedFeb 06, 2025
  • 1 minute read

This example shows how the maximum retrieval mode marks the QualityDetail column to indicate that a maximum value is returned based on an incomplete cycle. In this case, an incomplete cycle is a cycle that either contained periods with no values stored or a cycle that was cut short because the query end time was located inside the cycle. All values returned for the QualityDetail column are documented in the QualityMap table in the Runtime database.

SELECT DateTime, TagName, Value, QualityDetail FROM History

WHERE TagName = 'SysTimeSec'

AND DateTime >= '2005-04-11 11:19:10'

AND DateTime <= '2005-04-11 11:21:10'

AND wwRetrievalMode = 'Maximum'

AND wwResolution = 60000

The results are:

DateTime

TagName

Value

QualityDetail

(phantom cycle)

2005-04-11 11:19:10.000

SysTimeSec

NULL

65536

(cycle 1)

2005-04-11 11:19:59.000

SysTimeSec

59

4288

(cycle 2)

2005-04-11 11:20:59.000

SysTimeSec

59

192

(cycle 3)

2005-04-11 11:21:10.000

SysTimeSec

10

4288

TitleResults for “How to create a CRG?”Also Available in