MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guía de usuario Pagina 445

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 574
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 444
isrunning
17-53
isrunning
Determine whether video input object is running
Syntax
bool = isrunning(obj)
Description
bool = isrunning(obj) returns true if the video input object obj is running,
otherwise false. A video input object is running if the value of its Running property is
set to 'on'.
If obj is an array of video input objects, bool is a logical array where each element in
bool represents the corresponding element in obj. If an object in obj is running, the
isrunning function sets the corresponding element in bool to true, otherwise false.
If the video input objects in obj is invalid, isrunning returns an error.
Examples
Create a video input object, configure a manual trigger, and then start the object. This
puts the object in running state.
vid = videoinput('winvideo');
triggerconfig(vid,'manual')
start(vid)
Use isrunning to check the state of the object.
bool = isrunning(vid)
bool =
1
Create a second video input object.
vid2 = videoinput('winvideo');
Vista de pagina 444
1 2 ... 440 441 442 443 444 445 446 447 448 449 450 ... 573 574

Comentarios a estos manuales

Sin comentarios