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

Performance equation Options · View
jellys61
#1 Posted : Saturday, July 16, 2011 7:00:39 PM
Rank: Newbie
Groups: Member

Joined: 5/21/2011
Posts: 2
Location: india
Hi Guys,

I need to write a performance equation which will calculate % of time for which the tag1 is less than 100 for last 1week and display the result every monday 7:00 AM.

Thanks for your help.
cheers.
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 : Monday, July 18, 2011 9:29:25 AM
Rank: Advanced Member

Groups: Member

Joined: 4/7/2011
Posts: 137
Location: KZN, South Africa
Your PE (Performance Equation) depends on what,when and where you want to calculate your formula

If you only want to display the result at the end of the week (Monday 7am) then you can use this:
TimeLE('sinusoid',('mon+7h')+'-7d',('mon+7h'),20)/(('mon+7h')-(('mon+7h')+'-7d'))*100

TAGNAME:sinusoid=>Replace with your tag
START TIME:('mon+7h')+'-7d'=>This will take the current week start and subtract 7 days
END TIME:('mon+7h')=>Current Monday + 7 hours
You can replace the 20 with any figure you want.

If you want to display this result as "running" calculation you will need to be more creative with your end time, consider the Totalization subsystem and if you have PI-ACE you can use that.
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.