Home > C: Programming > Function Descriptions > History back  Previous chapter  Next chapter  Print  

is_WaitEvent

uEye Camera Manual Version 3.80

is_WaitEvent

Windows_Logo

Linux_Logo

-

USB 2.0

GigE

Syntax

INT is_WaitEvent (HIDS hCam, INT which, INT nTimeout)

Description

is_WaitEvent() allows waiting for uEye events. The function indicates successful execution when the event has occurred within the specified timeout.

Input Parameters

hCam

Camera handle

which

ID of the event (see is_InitEvent())

nTimeout

Time (in ms) that the function will wait for an event to occur

Return Values

IS_SUCCESS

Function executed successfully

IS_NO_SUCCESS

General error message

IS_TIMED_OUT

The specified timeout expired without the event having occurred.

Related Functions

is_InitEvent()
is_EnableEvent()
is_DisableEvent()
is_ExitEvent()

Code Sample


//Example for Linux - event handle NULL

//Activate and initialize FRAME event

is_EnableEvent (hCam, IS_SET_EVENT_FRAME);

is_InitEvent (hCam, NULL, IS_SET_EVENT_FRAME);

 

//Start image capture and wait 1000 ms for event to occur

is_FreezeVideo (hCam, IS_DONT_WAIT);

is_WaitEvent (hCam, IS_SET_EVENT_FRAME, 1000);


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!


© 2010 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com