MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guide de l'utilisateur Page 184

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 574
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 183
6 Acquiring Image Data
6-36
imaqhwinfo function to get the object constructor for your image acquisition device
and substitute that syntax for the following code.
vid = videoinput('matrox',1);
2
Configure a hardware trigger — Use the triggerinfo function to determine
valid configurations of the TriggerSource and TriggerCondition properties.
See “Determining Valid Configurations” on page 6-6 for more information. In this
example, triggerinfo returns the following valid trigger configurations.
triggerinfo(vid)
Valid Trigger Configurations:
TriggerType: TriggerCondition: TriggerSource:
'immediate' 'none' 'none'
'manual' 'none' 'none'
'hardware' 'risingEdge' 'TTL'
'hardware' 'fallingEdge' 'TTL'
Configure the video input object trigger properties to one of the valid combinations
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));
3
Configure other object properties — This example also sets the value of the
FramesPerTrigger property to configure an acquisition large enough to produce a
noticeable duration. (The default is 10 frames per trigger.)
vid.FramesPerTrigger = 100
4
Start the image acquisition object — Call the start function to start the image
acquisition object.
start(vid)
The start function sets the object running and returns control to the command line.
5
Block the command line until the acquisition finishes — After the start
function returns, call the wait function.
Vue de la page 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 573 574

Commentaires sur ces manuels

Pas de commentaire