mpiEventMgrService

Declaration
long mpiEventMgrService(MPIEventMgr eventMgr,
                        MPIControl  control)
Required Header stdmpi.h
Description

EventMgrService obtains all pending asynchronous events from the motion controller (control).

Events generated by sources for which no prior call to mpiEventMgrEnable(...) has been made are discarded. Events generated by enabled sources are returned in First-In/First-Out (FIFO) order each time a thread calls mpiEventMgrWait(...).

Typically, after a motion controller generates a hardware interrupt, the Interrupt Service Routine (ISR) is invoked, and the ISR in turn invokes mpiEventMgrService(...) directly or indirectly.

If "control" is Then
MPIHandleVOID events will be obtained from all motion controllers on the EventMgr's (eventMgr) control list
valid control must also be present on the EventMgr's (eventMgr) control list
Return Values
MPIMessageOK if EventMgrService successfully obtains all pending asynchronous events from the motion controller
See Also meiEventMgrServiceConfigGet | meiEventMgrServiceConfigSet