Prosoft-technology MVI69-ADM Instrukcja Użytkownika Strona 299

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 342
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 298
MVI-ADM 'C' Programmable CIP Messaging Library Functions
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 299 of 342
February 20, 2013
MVIcip_Sleep
Syntax
int MVIcip_Sleep( MVIHANDLE handle, WORD msdelay );
Parameters
handle
handle returned by previous call to MVIcip_Open
msdelay
time in milliseconds to suspend taskdelay );
Description
MVIcip_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
success
MVI_ERR_NOACCESS
handle does not have access
Example
MVIHANDLE handle;
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
MVIcip_Sleep (handle, 10);}
Przeglądanie stron 298
1 2 ... 294 295 296 297 298 299 300 301 302 303 304 ... 341 342

Komentarze do niniejszej Instrukcji

Brak uwag