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

PI SDK connection Options · View
shu0106
#1 Posted : Thursday, September 30, 2010 4:44:36 AM
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?
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.
shu0106
#2 Posted : Thursday, September 30, 2010 5:14:31 PM
Rank: Newbie
Groups: Member

Joined: 9/30/2010
Posts: 3
Location: Houston, TX
Smile 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.
RJK Solutions
#3 Posted : Friday, October 01, 2010 4:48:21 PM
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 BigGrin BigGrin BigGrin

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
shu0106
#4 Posted : Monday, October 04, 2010 5:52:16 AM
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.
RJK Solutions
#5 Posted : Tuesday, October 05, 2010 10:38:00 PM
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
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.