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

How can i open Process Book display in C#? Options · View
maxim
#1 Posted : Tuesday, February 15, 2011 8:54:42 PM
Rank: Member
Groups: Member

Joined: 6/10/2010
Posts: 16
Location: UK
Hello every body!!!!
As i said i am a new one in PI!! i have small question how can i open display in c# and get pi values through code?
Thanks a lot!!!
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.
RJK Solutions
#2 Posted : Tuesday, February 15, 2011 9:38:04 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hello,

So in a nutshell, add references to "OSIsoft.PBObjLib" and "OSIsoft.PBSymLib".
Then your code is as simple as...

Code:

PBObjLib.Application app = new PBObjLib.Application();
            PBObjLib.Display disp = app.Displays.Open("C:\\Display1.pdi", false);
            PBObjLib.Symbol sym = disp.Symbols.Item(1);


When you say get PI values, what do you mean? Getting PI values would typically be done via PISDK or AFSDK.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
maxim
#3 Posted : Wednesday, February 16, 2011 6:09:01 AM
Rank: Member
Groups: Member

Joined: 6/10/2010
Posts: 16
Location: UK
Thnaks!!!
Great Help!!!
I meaned , if can get value object through process book object Hierarchy
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.