15.08.2013 Views

Manual Inspecta Software

Manual Inspecta Software

Manual Inspecta Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.4.3.8 mvfg_get_event (DWORD event_id )<br />

Synopsis: Handle mvfg_get_event( DWORD event_id )<br />

<strong>Software</strong><br />

Description: mvfg_get_event() returns the handle of an <strong>Inspecta</strong> events.<br />

<strong>Inspecta</strong>s driver serves this event in its interrupt service routine and signals<br />

the status of the capture process.<br />

This event is a „manual reset event object“, which will be set but not reset<br />

by the driver.<br />

Following Event-ID’s are defined:<br />

ID Description<br />

MVFGEVENT_VALID_FLAG The event is set (signaled), as soon<br />

as an image is completely captured.<br />

Returns: != NULL Handle of the event.<br />

== NULL Handle not available.<br />

Example: // capture a frame with the Valid-Flag Event:<br />

// get handle for the Valid-Flag Event<br />

hValidFlagHandle = mvfg_get_event( MVFGEVENT_VALID_FLAG );<br />

ResetEvent( hValidFlagHandle ); // clear Valid-Flag Event<br />

mvfg_set_vflag( 3 ); // trigger input of next frame<br />

// Wait for frame ready, timeout 1s<br />

WaitForSingleObject( hValidFlagHandle, 1000 );<br />

Remark: this funktion is only available with WiNT/2K/XP<br />

INSPECTA <strong>Software</strong> Rev. 1.47 Page 32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!