Chapter 3
Programming with NI-IMAQ
High-Level Sequence Functions
imgInterfaceOpen
imgSessionOpen
Buffer list setup
imgSequenceSetup
imgSessionStatus
User-Specific Functions
imgClose
NI-IMAQ User Manual
Sequence functions include
imgSessionStartAcquisition
sequence initiates a variable-length and variable-delay transfer to multiple
buffers. You can configure the delay between acquisitions with
and specify both the buffer list that will be used for
SequenceSetup
transfers and the number of buffers. After
monitor the status of the transfer and perform processing on any of the
buffers in the sequence or you can wait until the acquisition completes and
process all buffers simultaneously.
A sequence is appropriate for applications where you need to perform
processing on multiple images. You can configure a sequence to acquire
every frame or skip a variable number of frames between each image.
Figure 3-4 illustrates a typical sequence programming order.
imgInterfaceOpen
and configures the interface
according to the file setup by the
IMAQ Configuration Utility
imgSessionOpen
will be used for all acquisition and configuration.
You must set up your buffer list and the
number of the frames/fields that need to
be skipped between each acquisition.
imgSequenceSetup
programmable number of buffers. These buffers can be
created either by the driver (using
or passing a NULL) or by you.
imgSessionStatus
the sequence, including the buffer number of the last buffer
that was successfully transferred. With this information,
you can determine which buffer you want to process.
User-specific image processing.
imgClose
Figure 3-4. Sequence Programming Flowchart
imgSequenceSetup
and
imgStopAcquisition
imgSequenceSetup
opens
.
opens a session that
initiates a sequence to a
gives the current status of
closes the interface and session.
3-10
,
. A
, you can
imgCreateBuffer
(Loop)
© National Instruments Corporation
Need help?
Do you have a question about the Image Acquisition Software and is the answer not in the manual?