Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA Historian Client | Web
  • AVEVA Historian Client | Web Tech Notes

TN 1116 How to determine time between samples

Last updated: February 20th, 2025

Description

  • Author: Brian Schneider
  • Published: February 20th, 2025

Details:

Description

This article from InSource shows how to use the built in column of the Historian Server (called wwResolution) to return the time between samples of a queried result set. This can be useful to understand how long something spent in a given state or how long it has been since the value of X was something.

  • Author: Lewis Talley
  • Published: 02/22/21
  • Applies to: Historian Server (various versions)

Details

When querying the Historian, you can specify which columns are returned in the result set as shown below. Although most commonly we are only concerned with the tagname, datetime, value and quality. The Historian Client allows you a visual list to pick which columns you want (or you can look in the documentation for a full list):

One of the often overlooked columns available is the wwResolution column, and this column is used to show the time difference between the samples returned the result set. This can be displayed in the Historian Client, but clicking the checkbox to turn it on or by specifying it in part of the select statement in the SQL query. Below shows what this looks like using the system second, and system minute counter. You will notice the time difference between the two is expressed in milliseconds for each 

To specify this in a query looks like this:

 

sample time time determination
Give feedback about this article

Recommended articles

How to receive group emails

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand