Type definitions for events. More...
Typedefs | |
| typedef enum MVEventType_t | MVEventType_t |
| typedef enum MVResultState_t | MVResultState_t |
Enumerations | |
| enum | MVEventType_t { eMVEvent_Null = 0x0001, eMVEvent_StateChanged = 0x0002, eMVEvent_RecipePrepared = 0x0004, eMVEvent_RecipeUnprepared = 0x0008, eMVEvent_ResultReady = 0x0010, eMVEvent_Ready = 0x0020, eMVEvent_JobStarted = 0x0080, eMVEvent_Error = 0x0100, eMVEvent_AcquisitionDone = 0x0200, eMVEvent_Shutdown = 0x8000 } |
| Enumeration of the types of events which may be received from the vision system. More... | |
| enum | MVResultState_t { eMVResultState_Null = 0x00, eMVResultState_Completed = 0x01, eMVResultState_Processing = 0x02, eMVResultState_Aborted = 0x03, eMVResultState_Failed = 0x04 } |
| Enumeration of the possible states of a result. | |
Timeout duration | |
These macro constants and function-like macros are used in the | |
| #define | MV_TIME_NONE 0 |
| No timeout: function returns immediately in case there are no pending events. | |
| #define | MV_TIME_INFINITE -1 |
| Infinite timeout: function blocks indefinitely until an event is received. More... | |
| #define | MV_TIME_SECOND(X) (X * 1000) |
| Function-like macro to express a finite timeout duration in seconds. | |
| #define | MV_TIME_MILLISECOND(X) (X) |
| Function-like macro to express a finite timeout duration in milliseconds. | |
| typedef struct _MVEvent_t * | MVEvent_t |
| Opaque data type which holds all information related to a single event. More... | |
Type definitions for events.
| Event | Parameters | Parameter Type | Semantics |
|---|---|---|---|
| common | MV_PARAM_ACTION_ID | UInt32 | action ID |
| MV_PARAM_PLUGIN_ID | UInt32 | plug-in ID | |
| MV_PARAM_ACTION_USER_ID | Variant | user action ID, may be unset | |
| StateChanged | MV_PARAM_STATE_FROM_STATE | UInt32 | state enum value |
| MV_PARAM_STATE_TO_STATE | UInt32 | state enum value | |
| MV_PARAM_STATE_ACTION_CAUSE | UInt32 | action type enum value | |
| RecipePrepared | MV_PARAM_RECIPE_ID | String | recipe ID |
| RecipeUnprepared | MV_PARAM_RECIPE_ID | String | recipe ID |
| ResultReady | MV_PARAM_RECIPE_ID | String | recipe ID |
| MV_PARAM_JOB_ID | UInt32 | job ID | |
| MV_PARAM_RESULT_ID | UInt32 | result ID | |
| MV_PARAM_MEAS_ID | String | measurement ID, may be unset | |
| MV_PARAM_PART_ID | String | part ID, may be unset | |
| MV_PARAM_RESULT_STATE | UInt32 | MVResultState_t enum value | |
| MV_PARAM_RESULT_CONTENT | Tuple | determined by MVApp results | |
| MV_PARAM_RESULT_TIMESTAMP | String | creation time in ISO-8601 | |
| MV_PARAM_EXEC_START_TIMESTAMP | String | execution start time in ISO-8601 | |
| MV_PARAM_EXEC_END_TIMESTAMP | String | execution end time in ISO-8601 | |
| MV_PARAM_ACQ_DURATION_MILLIS | Double | acquisition duration in milliseconds | |
| MV_PARAM_PROC_DURATION_MILLIS | Double | processing duration in milliseconds | |
| MV_PARAM_CONFIGURATION_ID | reserved for future use | ||
| Ready | MV_PARAM_JOB_ID | UInt32 | job ID |
| JobStarted | MV_PARAM_JOB_ID | UInt32 | job ID |
| MV_PARAM_RECIPE_ID | String | recipe ID | |
| MV_PARAM_MEAS_ID | String | measurement ID, may be unset | |
| MV_PARAM_PART_ID | String | part ID, may be unset | |
| MV_PARAM_IS_CONTINUOUS_JOB | Bool | true for continuous jobs, false for single jobs | |
| MV_PARAM_START_PARAMS | Tuple | determined by MVApp parameters | |
| Error | MV_PARAM_ERROR_MESSAGE | String | |
| MV_PARAM_ERROR_CODE | UInt32 | ||
| MV_PARAM_ERROR_CAUSE | UInt32 | action type enum value | |
| AcquisitionDone | MV_PARAM_JOB_ID | UInt32 | job ID |
| MV_PARAM_ACQ_DURATION_MILLIS | Double | acquisition duration in milliseconds | |
| Shutdown |
Notation for column "Parameter Type":
| #define MV_TIME_INFINITE -1 |
Infinite timeout: function blocks indefinitely until an event is received.
It is still safe for a plug-in to choose to use a finite timeout as it is guaranteed that a Shutdown event will be send when the plug-in is stopped. Do not call MV_TryGetEvent() after receiving Shutdown, though.
| typedef struct _MVEvent_t* MVEvent_t |
Opaque data type which holds all information related to a single event.
MVEvent_t is a pointer to an opaque data structure. The data structure is initialized by MV_TryGetEvent() when it returns successfully and information about the event can be queried from it using MV_Event_GetParameter() and MV_Event_Tuple_GetParameter(). MV_Action_SetParameter(). Only plug-ins with the "monitor" access level can receive and process events from the vision system.
| enum MVEventType_t |
Enumeration of the types of events which may be received from the vision system.
See Available Events for more information.