| Customize Help
| Save Settings

MdigGrabWait



Function Map
Synopsis
Wait for the end of the grab in progress.
Syntax
void MdigGrabWait(
MIL_ID DigId, //in
MIL_INT64 ControlFlag //in
)
Description

This function allows you to temporarily override the grab mode on the specified digitizer (see MdigControl() with M_GRAB_MODE).

Using this function forces the grab to wait until the grab timeout value has expired (set using MdigControl() with M_GRAB_TIMEOUT). Note that if the grab timeout is set to infinite, the grab will never end and this function will wait indefinitely. If the grabbed frame is not returned within the period of the timeout, an error is generated.

[Host system]

When grabbing from a video or directory of images, once the last image is grabbed, grabbing will restart from the beginning of the video or from the first image in the directory.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
DigId

Specifies the identifier of the digitizer.

ControlFlag

Specifies the function's control flag. This parameter must be set to one of the following:

function map For specifying the function's control flag
Click to summarizeValue Description
Click to summarize M_GRAB_END

Wait for the end of all queued grabs.

This value should not be used when grabbing data with MdigGrabContinuous().

(summarize)
Click to summarize M_GRAB_FRAME_END

Waits for the end of the current grab.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
GRAB END GRAB FRAME END