Chapter3 Programmingwith NI-IMAQ for 1394
NI-IMAQfor IEEE-1394 Cameras User Manual 3-8 ni.com
High-Level Sequence FunctionsSequence functions include imaq1394SetupSequence.Asequence
initiatesa variable-length and variable-delay transfer to multiple buffers.
You can configurethe delay between acquisitions with
imaq1394SetupSequenceand specify both the buffer list used for
transfersand then umber of buffers. imaq1394SetupSequence is
synchronous and returns whenall imageshave b een acquired.
Use asequen ce in applications where you need to perform processing on
multiple images. Figure 3-4 illustrates a typical sequence programming
order.
Figure3-4. Sequence Programming Flowchart
TheSequence1394.c example demonstrates how to perform a sequence
acquisition using imaq1394SetupSequence. The examplesets up a
sequence thatuses 10 user-allocated buffers. Each buffer in the sequence
has its ownskip count associ ated with it. The skip count is the number of
framesto sk ip prior to acquiring the next image. The acquisition is started
atsetup time and the setup call is synchronous.
imaq1394CameraOpen
imaq1394CameraOpenopens
andconfigures the camera
accordingto the file set up by
Measurement& Automation Explorer.
User-specificimage processing.
imaq1394Closecloses the camera and session.
Setup your buffer list and the
numberof the frames that need to
beskipped between each acquisition.
Bufferlist setup
User-SpecificFunctions
imaq1394SetupSequenceinitiates a
sequenceto a programmable number of buffers.
imaq1394SetupSequence
imaq1394Close
(Loop)