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

Descriptor data Options · View
Aisha
#1 Posted : Saturday, July 30, 2011 12:37:47 PM
Rank: Newbie
Groups: Member

Joined: 7/30/2011
Posts: 3
Hello dears...
How are you?
My objective is writing the code using C# programming language for creating web service to retrieve data from PI through PI SDK.
I really need a help this is the first time for me to deal with the PI SDK using C#.Net
My actual problem I need to write a code to retrieve the descriptor from the PI ....

I would be grateful if you help me....


Thank you>>>>
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 : Sunday, July 31, 2011 11:09:57 PM
Rank: Administration

Groups: Administration

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

Here is a very simple example:

Code:

PISDK.PISDK sdk = new PISDK.PISDK();
PISDK.Server srv = sdk.Servers.DefaultServer;

if (!srv.Connected) srv.Open(String.Empty);

PISDK.PIPoint pnt = srv.PIPoints["sinusoid"];

String descriptor = pnt.PointAttributes["descriptor"].Value;
Principal Consultant
Real-Time Data Management @ Wipro Technologies
Aisha
#3 Posted : Saturday, August 06, 2011 3:53:40 PM
Rank: Newbie
Groups: Member

Joined: 7/30/2011
Posts: 3
Code:

PISDK.PISDK sdk = new PISDK.PISDK();
PISDK.Server srv = sdk.Servers.DefaultServer;

if (!srv.Connected) srv.Open(String.Empty);

PISDK.PIPoint pnt = srv.PIPoints["sinusoid"];

String descriptor = pnt.PointAttributes["descriptor"].Value;
[/quote]
ThumbsUp

" Thank you very much that is what i want i am really greatful"

thanksSmile
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.