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

StateSets event Options · View
zfima
#1 Posted : Monday, January 02, 2012 9:26:19 AM
Rank: Advanced Member

Groups: Member

Joined: 11/13/2011
Posts: 77
Location: Middle East
Hello.
I need write some procedure of StateSets changing. For example, when user add/remove/modify StateSet of PI server.
OSI gives interface of Event but not implemented it.
So, the code:
Code:

_piServer.StateSets.Events;

throw exception NotImplemented.

One of my possibilities is to poll the StateSets objects of PI server, and, if some change occurred, rise event. But, i prefer handle event that poll PI server StatesSet object.

Maybe, someone have any alternatives to polling PI server?
thanks
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.
squatty
#2 Posted : Tuesday, January 03, 2012 6:25:21 AM
Rank: Advanced Member

Groups: Member

Joined: 4/7/2011
Posts: 137
Location: KZN, South Africa
hi zfima

It seems like such a hassle to write code just so you can "log" who changed/edit/add statesets on the pi server. First thing that should be asked is why does that person/s have a access the statesets, do they really need it and can you implement some change order procedure that does not require any coding what so ever, just some managerial signature of the change.
zfima
#3 Posted : Sunday, January 08, 2012 8:30:20 PM
Rank: Advanced Member

Groups: Member

Joined: 11/13/2011
Posts: 77
Location: Middle East
The part of my project is pass from one PI server information to other PI server. So, the StateSets i need pass too when some change occured in these states. For a while, i do polling on states, and, when change occured i do update to other PI server
squatty
#4 Posted : Monday, January 09, 2012 6:59:18 AM
Rank: Advanced Member

Groups: Member

Joined: 4/7/2011
Posts: 137
Location: KZN, South Africa
Now I understand, have you looked into the pi-to-pi interface or even a pi-collective. Your main concern is the interval/scanrate at which to execute your code. Can you get the last modified date for the pids table and poll it every 5minutes.
zfima
#5 Posted : Monday, January 09, 2012 8:27:48 AM
Rank: Advanced Member

Groups: Member

Joined: 11/13/2011
Posts: 77
Location: Middle East
My connection between PI goes through special equipement and i do some transformations with the packets. So, i can not use your suggestions. But, thank you
RJK Solutions
#6 Posted : Monday, January 09, 2012 8:11:19 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
zfima wrote:
My connection between PI goes through special equipement and i do some transformations with the packets. So, i can not use your suggestions. But, thank you


UDP?
Principal Consultant
Real-Time Data Management @ Wipro Technologies
zfima
#7 Posted : Tuesday, January 10, 2012 6:44:24 AM
Rank: Advanced Member

Groups: Member

Joined: 11/13/2011
Posts: 77
Location: Middle East
RJK Solutions wrote:
zfima wrote:
My connection between PI goes through special equipement and i do some transformations with the packets. So, i can not use your suggestions. But, thank you


UDP?


Hello, RJKSolutions!
First, it is using a lot of HW, but using UDP, as you say. But, i can use TCP too. Inside it is a black box, so PI servers can not "see" each other.

I will be closer to the topic theme:
How can i get event about changes in Digital states? I do not want poll the PI StatesSet each time i have event from point changes
RJK Solutions
#8 Posted : Tuesday, January 10, 2012 10:38:43 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Ah, ok. So you have some hardware providing some uni-directional replication of data and PI structure.

Unfortunately, there is no event mechanism for the State Sets. Events Pipes are only supported on:

PIPoints Point database Updates Add, Edit, Delete PIPoint
PIPoint.Data, PointList.ListData All new snapshot and archive edit events update
IPIData2.ArchiveEventPipe
ListData.ArchiveEventpipe
TransferRecordDB PITransferRecord add, edit, delete PITransferRecord
PIBatchDB PIBatch add, edit, delete PIBatch
PIModule PIUnitBatch add, edit, delete UnitBatch
PIModuleDB PIModule add, edit, delete PIModule


Principal Consultant
Real-Time Data Management @ Wipro Technologies
zfima
#9 Posted : Tuesday, January 10, 2012 11:22:52 AM
Rank: Advanced Member

Groups: Member

Joined: 11/13/2011
Posts: 77
Location: Middle East
RJK Solutions, thanks a lot.

I too did not find it. So, i will poll it and pass to other PI when one of Digital points have changes.
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.