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

Text in PB PI calc Options · View
dubmark74
#1 Posted : Tuesday, March 29, 2011 3:44:15 PM
Rank: Member
Groups: Member

Joined: 6/23/2010
Posts: 14
Hello,

Heres my problem. I have a PI tag which displays the status of a plant, 0=Out of Service 1=In Service, 2=Fault, etc. I have drawn a process bok screen and i would lile to display the plant status in text. I initially went to a multi-state and tried using a PI calcuation, formula: if 'tag'=0 then "OUT" else "IN", etc. This doesn't seem to work. Is VB the best way of doing this, if so i'd appreciate any pointer for the code.

Thanks in advance, Mark.
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.
jc113883
#2 Posted : Wednesday, March 30, 2011 11:40:28 PM
Rank: Member
Groups: Member

Joined: 10/7/2009
Posts: 14
You're close!

1) Create a new Dataset (PI calculation) as you have written.
2) Add a value to the PI display, but instead of referring to the original tag, refer to the dataset.

Multistate is only for changing the colours of a value or symbol.
dubmark74
#3 Posted : Friday, April 08, 2011 3:38:52 PM
Rank: Member
Groups: Member

Joined: 6/23/2010
Posts: 14
Only got a chance to look at this now, worked perfectly, i was so close but yet so far. Thanks a lot.
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.