Event Pipe multiple entry.

Discussion created by formerpigeek on Oct 12, 2010
Latest reply on Oct 19, 2010 by cescamilla



(m_TREvtPipe.Count > 0)
    l_EventObj = m_TREvtPipe.Peek(1);


We are using EventPipe in our custom application to receive PI Server point value change event notification.


Above code is written in the evtEvents_OnNewValue API. This API will be triggered whenever registered PI point value is changed.


Whenever we set the point value PI SMT, we have observed that evtEvents_OnNewValue is getting called twice for the same point. This is not the constant behavior, but happens infrequently.


We are sure that no other application is writing this point value. Also “m_TREvtPipe” is a member variable object, it gets created only once.


We would like to know the possible cause of this PI behavior & what the precautions / steps we need to take care to avoid this. Because of this our application behavior is getting disturbed.