MATLAB IMAGE ACQUISITION TOOLBOX 3 Guida Utente Pagina 131

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 130
Specifying the Trigger Type
your image acquisition device and substitute that syntax for the following
code. The device mu st support hardware triggers.
vid = videoinput('mat rox',1);
2 Determine valid trigger property configurations —Usethe
triggerinfo fun c ti on to determine i f your image ac q u isi t ion device
supports hardware triggers, and if it does, to find out valid configurations of
the
TriggerSource and TriggerCondition properties. See “Determining
Valid Configurations” on page 5-7 for more information.
In this example,
triggerinfo returns the following valid trigger
configurations.
triggerinfo(vid)
Valid Trigger Configur ations:
TriggerType: TriggerCondition: TriggerSource:
'immediate' 'no ne' 'none'
'manual' 'none' 'none'
'hardware' 'risingEdge' 'TTL'
'hardware' 'fallingEdge' 'TTL'
3 Configure properties Configure the video input object trig ger
properties to one of the valid combinatio n s returned by
triggerinfo.You
can specify each property value as an argument to the
triggerconfig
function
triggerconfig(vid, 'hardware','risingEdge','TTL')
Alternatively, you can set these values by passing one of the structures
returned by the
triggerinfo function to the triggerconfig function.
configs = triggerinfo (vid);
triggerconfig(vid,configs(3));
ThisexamplealsosetsthevalueoftheFramesPerTrigge r property to 5.
(The default is 10 frames per trigger.)
set(vid,'FramesPerTrigger',5)
5-17
Vedere la pagina 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 407 408

Commenti su questo manuale

Nessun commento