User`s guide
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