Syntax
EnableEvent (INT nWhich)
Description
Enables an event object. After the release the event messages for the created event object are enabled. Depending on the operating system different functions are to call.
•Event has to be provided by the application program
•Event has to be declared by InitEvent
•Event has to be enabled by EnableEvent
•You have to wait for the event in the application program by WaitForSingleObject or WaitForMultipleObject
•Event has to be disabled by DisableEvent
•Event has to be deleted by ExitEvent
Event handling for images If you use the event handling to signal new images from the camera, it may occur under high system load that the event-based application does not receive a signal for every image. This is because the event concept does not provide that several events of the same type are stored. If due to system load more than one image is signaled before the application is ready (e.g. WaitForSingleObject), you have no option to capture these missed events. |
Parameter
nWhich |
•IS_SET_EVENT_AUTOBRIGHTNESS_FINISHED •IS_SET_EVENT_AUTOFOCUS_FINISHED •IS_SET_EVENT_CAMERA_MEMORY •IS_SET_EVENT_CAPTURE_STATUS •IS_SET_EVENT_CONNECTIONSPEED_CHANGED •IS_SET_EVENT_DEVICE_PLUGGED_IN •IS_SET_EVENT_DEVICE_UNPLUGGED •IS_SET_EVENT_DEVICE_RECONNECTED •IS_SET_EVENT_EXTTRIG •IS_SET_EVENT_FIRST_PACKET_RECEIVED •IS_SET_EVENT_FRAME •IS_SET_EVENT_NEW_DEVICE •IS_SET_EVENT_OVERLAY_DATA_LOST •IS_SET_EVENT_PMC_IMAGE_PARAMS_CHANGED •IS_SET_EVENT_REMOVAL •IS_SET_EVENT_REMOVE •IS_SET_EVENT_SEQ •IS_SET_EVENT_STEAL •IS_SET_EVENT_TEMPERATURE_STATUS •IS_SET_EVENT_WB_FINISHED |
Interface
Related functions