MATLAB IMAGE ACQUISITION TOOLBOX 3 Guia do Utilizador Página 285

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 284
islogging
Purpose Determine w hether video input object is logging
Syntax bool = islogging(obj )
Description bool = islogging(obj ) returns true if th e video input object obj is
logging data, otherwise
false. A video input object is logging if the
value of its
Logging 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 corres ponding element in obj.
If an object in
obj is logging data, i slog ging sets the correspo n ding
element in
bool to true,otherwisefalse. If any of the video input
objects in
obj is invalid, islogging returns an e rror.
Examples Create a video input o bject.
vid = videoinput('win video');
To put the video input object in a logging state, start acquiring data.
The example acquires 50 frames to increase the amount of time that
the object remains in logging state.
set(vid,'FramesPerTrigger',50)
start(vid)
When the call to the start function returns, and the object is still
acquiring data, use
islogging to check the state of the object.
bool = islogging(vid)
bool =
1
Create a second video input object.
vid2 = videoinput('wi nvideo');
12-31
Vista de página 284
1 2 ... 280 281 282 283 284 285 286 287 288 289 290 ... 407 408

Comentários a estes Manuais

Sem comentários