User`s guide

Controlling Logging Parameters
The following figu re illu stra tes how the F rame GrabInterval property affects
an acquisition.
Impact of FrameGrabInterval on Data Logging
Determining How Much Data Has Been Logged
To determine how many frames have been acquired by a video input o bje ct,
check the value of the
FramesAcquired property. This property tells how
many frames the object has acquired since it was started. To determine how
many fram es are currently available in the memory buffer, see “D eterm ining
How Many Frames Are Available” on page 5-25.
Example:
Acquiring 100 Frames
This example illustrates how you can specify the amount of data to be
acquired and determine how much d ata has been acquired. (For an example
of config uring a time-based acquisition, s ee “Exam ple: Acquiring 10 Seconds
of Image Data” on page 6-5.)
1 Create an im age acquisition object Th i s example creates a video
inputobjectforaWindowsimageacquisition device. To run this example
on yo ur system, use the
imaqhwinfo function to get the object constructor
for your image acquisition device and substitute that syntax for the
following code.
vid = vi
deoinput('winvideo',1);
5-23