ProSoft Technology MVI69E-LDM User Manual
Page 80

Contents
MVI69E-LDM ♦ "C" Programmable
Developer's Manual
Linux Application Development Module
Page 80 of 130
ProSoft Technology, Inc.
August 21, 2014
MVI69_WaitForOutputScan
Syntax
int MVI69_WaitForOutputScan (MVI69HANDLE handle,
WORD timeout);
Parameters
handle
handle returned by previous call to MVI69_Open
timeout
maximum number of milliseconds to wait for scan
Description
MVI69_WaitForOutputScan allows an application to synchronize with the scan of the
module's output image. This function will return immediately after the modules output image
has been written.
handle must be a valid handle returned from MVI69_Open. timeout specifies the number of
milliseconds that the function will wait for the output scan to occur.
Note: There is no distinction in the MVI69E module between input and output scans. Therefore, the
MVI69_WaitForInputScan and MVI69_WaitForOutputScan functions will perform exactly the same function and
are interchangeable.
Return Value
MVI69_SUCCESS
the output scan has occurred.
MVI69_ERR_NOACCESS
handle does not have access
MVI69_ERR_TIMEOUT
the timeout expired before an output scan occurred
Example
MVI69HANDLE handle;
int rc;
/*wait here until output scan, 50ms timeout */
rc = MVI69_WaitForOutputScan (Handle, 50);
if (rc == MVI69_ERR_TIMEOUT)
printf ("Output scan did not occur within 50 milliseconds\n");
else
printf ("Output scan has occurred\n");
See Also
MVI69_WaitForInputScan