.

mpiEventStatusGet

Declaration

 
long mpiEventStatusGet(MPIEvent       event,
                       MPIEventStatus *status)
 

Required Header: stdmpi.h

Description

mpiEventStatusGet gets the status of an Event object (event) and writes it into the structure pointed to by status. Event status includes the event type, type-specific codes and the event source.

 
Return Values
MPIMessageOK  

Sample Code

 

/* Prototype for logging function */
void logToFile(const char*);

MPIEventStatus   eventStatus;
long             returnValue; 

/* Wait for motion event */
returnValue = 
    mpiNotifyEventWait(notify, 
                       &eventStatus, 
                       MPIWaitFOREVER);        
msgCHECK(returnValue);

/* Log event */
logToFile(mpiEventTypeName(eventStatus->type));

See Also

mpiEventStatusSet | meiEventStatusInfo | MPIEventType

EventLog.c

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering