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

Get new point from PI server Options · View
zfima
#1 Posted : Sunday, November 13, 2011 10:00:20 AM
Rank: Advanced Member

Groups: Member

Joined: 11/13/2011
Posts: 77
Location: Middle East
Hello!
I new in the business, and maybe i dismiss some point.

1. I have PI server with SDK version 1.3.6
2. I build some random interface and build 10 points that change values every 1 second. In SMT -> Current values i can see the changes every 1 second
3. Working under C# 2010 express i connecting to PI server and have some function:

Code:

        public void Connect(string filterParameters)
        {
            if (!_piServer.Connected)
            {
                _piServer.Open();
                PointList points = _piServer.GetPoints(filterParameters);
                _mdbEvents = points.Data.EventPipe;
                _mdbEvents.MaxCount = 1000000;
                _mdbEvents.NotifyThreshold = 1;
               
                _epEvents = (_DEventPipeEvents_Event)_mdbEvents;
                _epEvents.OnNewValue += new _DEventPipeEvents_OnNewValueEventHandler(e_OnNewValue);
            }
        }


The problem is, that event fired only once in 5 seconds!!!!!
What i miss?
thanks a lot
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.
maxim
#2 Posted : Tuesday, December 06, 2011 2:34:46 PM
Rank: Member
Groups: Member

Joined: 6/10/2010
Posts: 16
Location: UK
Hello,
use IeventPipe2 interface you have to change PollIntervall to get events
example:
_ePipe = (IEventPipe2) _myPointList.Data.EventPipe;
_ePipe.MaxCount = 1000000;
//ePipe.NotifyThreshold = 1;
//ePipe.MaxNotifyFrequency = 0;
_ePipe.PollInterval = 137;
zfima
#3 Posted : Tuesday, December 06, 2011 8:12:32 PM
Rank: Advanced Member

Groups: Member

Joined: 11/13/2011
Posts: 77
Location: Middle East
maxim wrote:
Hello,
use IeventPipe2 interface you have to change PollIntervall to get events
example:
_ePipe = (IEventPipe2) _myPointList.Data.EventPipe;
_ePipe.MaxCount = 1000000;
//ePipe.NotifyThreshold = 1;
//ePipe.MaxNotifyFrequency = 0;
_ePipe.PollInterval = 137;


Thanks, Maxim!
zfima
#4 Posted : Tuesday, January 10, 2012 9:27:27 AM
Rank: Advanced Member

Groups: Member

Joined: 11/13/2011
Posts: 77
Location: Middle East
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.