Solution
Use the NI-IMAQ function
IMAQ Configure Trigger3.vi before
IMAQ Grab Setup.vi to configure the frame grabber to look for a hardware trigger.
- Set the Type input to RTSI
- Set the Line Number to be the DAQ trigger line on which the trigger will be output
- Set the Frame timeout and Action inputs appropriately based on your intended behavior
For example, in the image below, the
IMAQ Configure Trigger3.vi is configured to look for a trigger on PXI_Trig0. Each trigger will cause a new buffer to be acquired.
More triggering examples with NI-IMAQ API can be found in LabVIEW's
NI Example Finder. For example:
- Hardware Input and Output >> Vision-Acquisition >> NI-IMAQ >> ...
- Signal Input and Output >> HL Triggered Ring (Express).vi
- Low-Level >> LL Triggered Ring.vi