High-Level Signal I/O Functions
© National Instruments Corporation
the most recent video image. This process will continue until a designated
condition is met and then the acquisition stops.
The signal I/O functions fall into two categories, triggering acquisitions
and driving the external trigger lines. Triggered acquisitions allow images
to be acquired precisely when an external event occurs, such as a sensor
activating. The driving of external trigger lines allows external devices to
be controlled in sync with the image acquisition. For example, a strobe light
could be fired when a sequence acquisition begins.
Any of the four types of acquisitions can be initiated from an external
trigger source by using
and ring, just the first buffer in the list can be triggered or each buffer in the
list can be triggered. After using this function to set up the trigger, any
acquisition performed on the session will wait for a trigger. Use
imgSessionTriggerClear
session.
Some applications need to send signals out from the IMAQ hardware to an
external device. Many types of signals can be driven out of the trigger lines
by using
imgSessionTriggerDrive
number, the polarity the line should be driven, and what to drive on the line.
This can be a steady state value of high or low or it can be one of the internal
state signals of the hardware, such as acquisition in progress. When specific
pulses need to be generated,
be used.
Figure 3-6 shows the outline of a program that waits for an external trigger
on line 1 before acquiring a single image. It also configures the driver to
assert RTSI trigger line 3 when the acquisition is finished. The
example contains C code that implements this program.
trigsnap.c
Chapter 3
imgSessionTriggerConfigure
to remove the trigger settings from the
. This function takes a trigger line
imgPulseCreate
3-13
Programming with NI-IMAQ
. For sequence
and
imgPulseStart
NI-IMAQ User Manual
can
Need help?
Do you have a question about the Image Acquisition Software and is the answer not in the manual?