Publication 1756-RM004B-EN-P - October 2000
MVI Backplane API 3-19
MVIbp_WaitForOutputScan
Syntax:
int MVIbp_WaitForOutputScan(MVIHANDLE handle, WORD
timeout);
Parameters:
handle handle returned by previous call to MVIbp_Open
timeout maximum number of milliseconds to wait for scan
Description:
MVIbp_WaitForInputScan allows an application to synchronize with the
scan of the module’s output image. This function will return
immediately after the module’s output image has been written.
handle
must be a valid handle returned from MVIbp_Open.
timeout
specifies the number of milliseconds that the function will wait for the
output scan to occur.
This function is not supported for the 1756-MVI and will return
MVI_ERR_NOTSUPPORTED.
Return Value:
MVI_SUCCESS the output scan has occurred
MVI_ERR_NOACCESS
handle
does not have access
MVI_ERR_TIMEOUT
timeout
expired before an output scan
occurred
MVI_ERR_BADCONFIG the data connection is not open. (1756-MVI
only)
Example:
MVIHANDLE Handle;
int rc;
/* Wait here until output scan, 50ms timeout */
rc = MVIbp_WaitForOutputScan(Handle, 50);
if (rc == MVI_ERR_TIMEOUT)
printf(“Output scan did not occur within 50ms\n”);
else
printf(“Output scan has occurred\n”);
See Also:
MVIbp_WaitForInputScan