User`s guide

5 Acqu iring Image Data
2 Configure properties Specify the amount of data you want to acquire
as the number of frames per trigger. By default, a video input o bj ect
acquires 10 frames per trigger. For this example, set the value of this
property to
100.
set(vid,'FramesPerTrigger',100)
3 Start the image acquisition object -— Cal l the start function to start
the image acquisition object.
start(vid)
The object executes an immediate trigger and begins acquiring frames of
data. To verify if the video input object is logging data, use the
islogging
function.
islogging(vid)
ans =
1
The start function returns control to the command line immediately but
the object continues logging the data to the memory buffer. After acquiring
the specified number of frames, the object stops running and l ogging.
4 Check how many frames have been acquired To verify that the
specified number of frames has been acquired, check the value of the
FramesAcquired property. Note that the object continuously updates the
value o f the
FramesAcquired property as the acquisition pro gresses. If you
view the value of this property several times during an acquisition, you can
see the number of frames acquired increase until logging stops.
vid.FramesAcquired
ans =
100
5 Clean up Always remove image acquisition objects from mem ory, and the
variables that reference them, when you no long er need them.
delete(vid)
clear vid
5-24