ProSoft Technology MVI56E-LDM User Manual
Page 207

ControlLogix Platform ♦ "C" Programmable
CIP API Functions
Linux Application Development Module
Developer's Manual
ProSoft Technology, Inc.
Page 201 of 264
March 12, 2014
OCXcip_Sleep
Syntax
int OCXcip_Sleep (OCXHANDLE apihandle,
WORD msdelay);
Parameters
apihandle
handle returned by previous call to OCXcip_Open
msdelay
Time delay is milliseconds
Description
OCXcip_Sleep
delays for
msdelay
milliseconds.
Return Value
OCX_SUCCESS
The jumper information was read successfully
OCX_ERR_NOACCESS
apihandle
does not have access
Example
OCXHANDLE apiHandle;
int timeout = 200;
/* Simple timeout loop */
while (timeout --)
{
//Poll for data and so on
//Break if condition is met (no timeout)
//Else sleep a bit and try again
OCXcip_Sleep (apiHandle, 10);
}