MATLAB IMAGE ACQUISITION TOOLBOX 3 Guida Utente Pagina 109

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 108
Startin g and Stopping a Video Input Object
The following figure illustrates how an object moves from a running to a
stopped state.
Tra nsitions from Running to Stoppe d States
The following example illustrates starting and stopping an object:
1 Create an im age acquisition object Th i s example creates a video
input object for a webcam image acquisition device. To run this example on
your system, use the
imaqhwinfo function to get the object constructor for
your image acquisition device and substitute that syntax for the following
code.
vid = videoinput('win video',1);
2 Verify that the image is in a stopped state —Usetheisr unni ng
function to determine the current state of the video input object.
isrunning(vid)
ans =
0
3 Configure properties To illustrate object states, set th e vid eo inpu t
object’s
TriggerType property to 'Manual'. Tosetthevalueofcertain
trigger prope rties, includ ing the
TriggerType property, you must use the
triggerconfig function. See “Setting the Values of Trigger Properties”
on page 5-6 for more information.
triggerconfig(vid, 'Manual')
4-25
Vedere la pagina 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 407 408

Commenti su questo manuale

Nessun commento