Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual page 51

Multi-vendor interface module
Hide thumbs Also See for Allen-Bradley ControlLogix 1756-MVI:
Table of Contents

Advertisement

MVIbp_Sleep
Syntax:
int
MVIbp_Sleep( MVIHANDLE handle, WORD msdelay );
Parameters:
handle
handle returned by previous call to MVIbp_Open
msdelay
time in milliseconds to suspend task
Description:
MVIbp_Sleep suspends the calling thread for at least msdelay
milliseconds. The actual delay may be several milliseconds longer than
msdelay, due to system overhead and the system timer granularity
(5ms).
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
Example:
MVIHANDLE
handle;
int
timeout=200;
// Simple timeout loop
while(timeout--)
{
// Poll for data, etc.
// Break if condition is met (no timeout)
// Else sleep a bit and try again
MVIbp_Sleep(10);
}
success
handle does not have access
Publication 1756-RM004B-EN-P - October 2000
MVI Backplane API
3-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents