|
|
Rank: Newbie Groups: Member
Joined: 9/30/2010 Posts: 3 Location: Houston, TX
|
Hi,
I am new to PI and recently got assigned to work on a PI issue.
We have a Java application which imports Excelsior-xFunction package to invoke functions from piapi32.dll.
PI SDK version 1.3.6 build 361 has been installed initially set default PI server as Servr1. Later, another PI Server - Servr2 was added by running AboutPISDK.exe Connection Manager - add new server. Connection to Servr1 and Servr2 have been verified. Both machine were connected with the same default user and password. I was told that the PI user has the same privileges on both Servr1 and Servr2.
When the Java application takes in Servr1 as PI server string, data has been successfully returned for tag-33 string.
When the Java application takes in Servr2 as PI server, it was connected but no data has been returned for tag-33 string.
However, the PI admin can login using the same PI user ID and successfully retrieved data from BOTH Servr1 and Servr2 for tag-33 string using the OSISoft Excel spreadsheet tool on PI server.
I checked PIPC\DAT\pilogin.ini and only Servr1 is listed there. We have tried many things but still cannot get this issue resolved.
Any suggestions?
|
|
|
|
|
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: Newbie Groups: Member
Joined: 9/30/2010 Posts: 3 Location: Houston, TX
|
 Just solved the issue. In pisdk.chm – PI-SDK Manual PI-SDK Installation PI-SDK Setup Configuring Trusts section, there is a paragraph related to our case. After the trust has been set up on Servr2, data has been retrieved successfully. Thanks.
|
|
|
Rank: Administration
 Groups: Administration
Joined: 6/20/2008 Posts: 617 Location: Cheshire, United Kingdom.
|
These are the type of problems I like, the ones where the poster solves them before I read their post Glad you got it solved. Have you looked at using PISDK, PI-JDBC... packages instead of using PI-API? Principal Consultant Real-Time Data Management @ Wipro Technologies
|
|
|
Rank: Newbie Groups: Member
Joined: 9/30/2010 Posts: 3 Location: Houston, TX
|
>>Have you looked at using PISDK, PI-JDBC... packages instead of using PI-API?
In PISDK, I only saw examples for C, VB... no Java. In our Java application , the Excelisor xFunction JAR files is used for connection and retrieving data.
The application was developed long time ago. As long as it is still working, I don't think the developer would be interested in modifying it.
Is there a reason why we should stop using PI-API and move to PISDK, PI-JDBC ... package?
By the way, I learned there is a "know server table" PISDK object. Is there a way to check the PI Servers, default username, passwords info that stored in that object?
Thanks.
|
|
|
Rank: Administration
 Groups: Administration
Joined: 6/20/2008 Posts: 617 Location: Cheshire, United Kingdom.
|
The KST (Known Servers Table) is essentially a bunch of registry keys encapsulated in the About-PISDK.exe executable. What I would say is rather than relying on PI Users you should be looking to use PI Trusts, on PI Server WIS (Windows Integrated Security) using PI Identities/Mappings/Trusts. Principal Consultant Real-Time Data Management @ Wipro Technologies
|
|
|
|
Guest
|