AnsweredAssumed Answered

GetUpdateEvents() API behavior

Question asked by AshishGupta on Apr 20, 2020
Latest reply on Apr 21, 2020 by AshishGupta

Hi All,

 

I am working with "PIDataPipe" to get the events. In this class, I am using "GetUpdateEvents()" API to get the number of events. In one of the thread "Accessing data via AFSDK using PIDataPipe results in Error given enough time ", I have checked, "GetUpdateEvents()" takes maximum "int.MaxValue" events. As per API documentation, it is not clear how many events we can get? My understanding is that we can set maximum event count to "int.MaxValue". Please let me know whether my understanding is correct?

 

Another query is regarding event processing. For e.g. I have set "GetUpdateEvents()" event count to 10. And for e.g. at specified time I got 20 events. So here how the events get processes? My assumption is that, internally "PIDataPipe" is event queue which is FIFO. So as per above example, first 10 events get processed and remaining 10 events in event queue processed after that. Please let me know whether my understanding is correct?

Outcomes