|
|
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
|
|
|
|
|
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: 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.
|
|
|
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
|
|
|
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.
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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.
|
|
|
|
Guest
|