|
|
Rank: Newbie Groups: Member
Joined: 7/13/2011 Posts: 6 Location: France, Forbach
|
Hello, My name is Nicolas and I'm working for a Power plant in France. We have bought the software PI Osisoft and an associated server. The PI software and specialy the data link in Excel help us a lot every day and I've make many macros in Excel to automated reports and calculus. Now, I'm working with Visual Basic 2010 and I want to create a software which wil work with PI. So, I want to know if it is possible to include a trend of PI (like in Excel) or even directly the curent value of a Tag in my future own software. I've seen that I can add a "reference" (this is the french name) to PI data link in my Visual Basic 2010 project. But I don't know how I can using it. Can you help me please? Thanks
|
|
|
|
|
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.
|
|
|
Rank: Member Groups: Member
Joined: 7/16/2009 Posts: 12 Location: saudi arabia
|
i've done and it is working fine. for those who are interested to see the application please add me najjarja@hotmail.comregards
|
|
|
Rank: Newbie Groups: Member
Joined: 7/5/2011 Posts: 9 Location: Massachusetts
|
You best bet may be using the PI SDK. If you have either datalink or process book installed on your computer, the SDK is installed by default. In visual studio, choose the project menu, then add reference. Choose the browse tab, and browse to the PIPC folder (usually C:\program files\PIPC), goto the PISDK folder and choose your reference file. I would recommend starting with the osisoft.pisdk.dll. Once this is in your project, you can view the object with the object browser. There is also a help file in the PIPC\help folder that has very good documentation on how to use the SDK. Hope this helps.
|
|
|
Rank: Newbie Groups: Member
Joined: 7/13/2011 Posts: 6 Location: France, Forbach
|
OK thanks for the answer JB1. If I've understand, with the osisoft.pisdk.dll, I can have trend and values in my visual basic program. Can I also insert trend with the tools of Visual Basic 2010 in my application forms like you insert a trend in process book or in excel? I can't test your method for the moment because in france, it's the national day, so I don't work today. Thanks
|
|
|
Rank: Newbie Groups: Member
Joined: 7/13/2011 Posts: 6 Location: France, Forbach
|
OK thanks for the answer JB1. If I've understand, with the osisoft.pisdk.dll, I can have trend and values in my visual basic program. Can I also insert trend with the tools of Visual Basic 2010 in my application forms like you insert a trend in process book or in excel? I can't test your method for the moment because in france, it's the national day, so I don't work today. Thanks P.S.: najjarja I've send you a mail
|
|
|
Rank: Newbie Groups: Member
Joined: 7/13/2011 Posts: 6 Location: France, Forbach
|
Hello, I'm back to my office and I've added to my project the references PISDK.dll and PISDKCommon.dll. The two dll files was in the PIPC directory. Now the problem is that I can't use the functions or object of PISDK. I've always an error ( the code is underline in blue). And I use the functions of the PISDK help file Here is my code:
option explicit on Import PISDK Public class TestPI Private sub test_PI _Load(Byval sender As Object, Byval e As System.EventArgs) Handles Me.Load Me.Label1.Text = Servers.DefaultServer.Name End Sub End class
How can I use the function or what is the correct expression. I want in first time to have the name of the default server in a label (just for a test)
|
|
|
Rank: Newbie Groups: Member
Joined: 7/13/2011 Posts: 6 Location: France, Forbach
|
It's ok I found myself the problem. I have to add a new instance like this: Dim SDK As New PISDK.PISDK
Finally I can use all the function of the PIsdk.dll
But I have another question: can I add a PI trend to my visual basic application? I've add the PITrend.dll but I can't use it throw the toolbox.
|
|
|
Rank: Administration
 Groups: Administration
Joined: 6/20/2008 Posts: 617 Location: Cheshire, United Kingdom.
|
Hi nico57, Glad you found your answer, I was about to post the same. To answer your other question, you can't use the PI Trend object in your own projects/applications. Pretty sure there is even a licencing issue preventing you from doing so. Principal Consultant Real-Time Data Management @ Wipro Technologies
|
|
|
Rank: Newbie Groups: Member
Joined: 7/13/2011 Posts: 6 Location: France, Forbach
|
Thank you for your answer. I think that I will contact PI Osisoft support to know if I can have trend in my application and how much it cost to have this function. I've discover another function and this is the ActiveView function. So now I can display a .pdi file in a form of my application. But I don't find many help to use the ActiveView controls. So, can you help me: I have on my display file a trend. How can I fit my ActiveView to the size of the trend or to the size of my display file. Secondary can I activate the build mode so I can edit the trend (add new tag for example) in my application form. Finally can I automatically fill the login to the server box with the password and can I make the process book windows invisible. Sorry for the lot of questions.
Best regards Nico
|
|
|
|
Guest
|