YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Take a daily average between certain hours in the day? Options · View
dwhite468
#1 Posted : Thursday, December 01, 2011 10:35:37 PM
Rank: Newbie
Groups: Member

Joined: 12/1/2011
Posts: 1
Location: New Zealand
Hi

This may be very simple but I cant seem to work it out.

Basically I an looking at wind speed and I want to creat a trend that tracks the daily average wind speed between 14:00hs and 19:00hs? I can work out how to create a data set that is genrated from bewteen certain hours in the day?

Is this possible with PB?

Cheers

David
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
squatty
#2 Posted : Friday, December 02, 2011 9:07:08 AM
Rank: Advanced Member

Groups: Member

Joined: 4/7/2011
Posts: 137
Location: KZN, South Africa
Hi dwhite468

In your post you say you CAN do it using a dataset, so why don't you apply it into a calculated tag. IF I missunderstood your post then you will find some options below.

Create a calculated tag in PI:
if Hour('*') in 14 .. 19 = 1 then TagAvg('yourtagname','t+14','t+19') else NoOutput()

Create a Totalizer tag
Offset=+14h
Period=+6h
Function=Average

Give these two a options a try and let us know
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.