Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Pi PE Get Last "Good" Value

$
0
0

Hi All,

 

I am relatively new to Pi, joining an organization with a very mature Pi System.

 

We have lots of Performance Equations that sum together multiple daily totalizers.

 

(If BadVal('DailyTotalizer1') then 0, '*') else 'DailyTotalizer1') + (If BadVal('DailyTotalizer2') then 0, '*') else 'DailyTotalizer2')

 

However, whenever there is a Bad Value my daily sum with reverse, this is not what we are looking for.  I have been trying different things and tried changing  the PE to:

 

(If BadVal('DailyTotalizer1') then PrevVal('DailyTotalizer1', '*') else 'DailyTotalizer1') + (If BadVal('DailyTotalizer2') then PrevVal('DailyTotalizer2', '*') else 'DailyTotalizer2')

 

I still see the same issue as it is pulling the Previous Value as Bad.

 

Is there any way to make PE get the last "Good" value when Bad Val is found.

 

Otherwise,  can a totalizer total multiple tags?

 

Thanks in advance,

Phi


Viewing all articles
Browse latest Browse all 1120

Trending Articles