Prosoft-technology MVI69-ADM Manual de usuario Pagina 228

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 227
Backplane API Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 228 of 342 ProSoft Technology, Inc.
February 20, 2013
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
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
MVIbp_Sleep(10);
}
Vista de pagina 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 341 342

Comentarios a estos manuales

Sin comentarios