.

mpiEventTypeName

Declaration

 
const char* mpiEventTypeName(MPIEventType eventType);
 

Required Header: stdmpi.h
Change History: Added in the 03.03.00

Description

mpiEventTypeName returns a text description for MPI events. mpiEventTypeName should be called when a text description of the event type is needed.

 
Return Values
"Unknown Event" if EventTypeName cannot identify eventType.
pointer to Event Type Name if EventTypeName can identify eventType.

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

MPIEventType

EventLog.c

 

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