MATLAB IMAGE ACQUISITION TOOLBOX 3 Guide de l'utilisateur Page 150

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 408
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 149
5 Acqu iring Image Data
out = imaqmem;
mem_left = out.FrameMe moryLimit - out.FrameMe moryUsed;
To see a n example of using a callback function to monitor memory usage, see
“Example: Monitoring Memory Usage” on p ag e 7-17.
Modifying the Frame Memory Limit
To enab le yo u r ima ge acquisition applicat ion to wo r k with mo re ima ge frames,
you might want to increase the frame memory limit. Using the
imaqmem
function you can determine the current frame memory limit and specify a new
one. The following example illustrates this process.
1 Determine the c u rr e nt frame memory lim it This exam ple calls the
imaqmem function, requesting the value of the FrameMemoryLimit field.
out = imaqmem('FrameM emoryLimit')
out =
15425536
2 Set the frame memory limit to a new value —Whenyoucallimaqmem
with a numeric argument, it sets the FrameMemoryLim it field to th e value.
imaqmem(36000000)
3 Verify the frame memory limit setting —Callimaqmem again,
requesting the value of the
FrameMemoryLimit field.
out = imaqmem('FrameM emoryLimit')
out =
36000000
5-36
Vue de la page 149
1 2 ... 145 146 147 148 149 150 151 152 153 154 155 ... 407 408

Commentaires sur ces manuels

Pas de commentaire