Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

IMAQ Triggered Sequence and Save

by Member NateBraska on ‎03-16-2012 06:54 PM


This example uses IMAQ software to execute a sequence that writes images to file. It has optional triggering and occurrences.

This VI was written in LabVIEW 2011, with IMAQ 4.6.4


1) Select the camera's "Interface Name"

2) Specify "Number of Buffers" (aka images) for which you would like to allocate.

3) If wanting to include any of the optional features. Enable their respective "Disable Diagram" features (disabled by default) by right-clicking and selecting "Enable This Subdiagram." Then remove the structure by also right-clicking; the occurrence structures have block calls so this is a necessary step to enable these features.

4) Specify the install directory for the images if default setting is not desired.

5) Run the VI. Refreshing the Windows Explorer directory may be necessary

Block Diagram Steps:

1. Use low level functions to setup taking a sequence of images. Preallocating memory will allow acquisition to happen immediately after trigger is encountered.

***Disabled by default***

2. Setup the type of triggering. In this example, the trigger will start the entire acquisition. (Optional)

3. First of two occurrences, which indicates that the actual acquisition of frames has begun. (Optional)

4. Sequence structure for the addition of added programming, such as serial commands (application dependent). This example turns on a boolean to signify the occurrence has happened.

5. Second occurrence, which signify that the entire acquisition has finished. Now all images are in memory and can be written to file. (Optional)

6. Second sequence structure for optional programming.


7. For Loop to iterate through the images in memory and write each to file. If changing image type with polymorphic VI, make sure to change the ".png" string constant, also.

8. Clear all occurrences for running the program in the future.

9. Dispose of images in memory.