Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Manage Image Buffers in an IMAQ Vision Application in Visual Basic?

Primary Software: LabWindows/CVI Add-ons>>Vision Development Module
Primary Software Version: 6.0
Primary Software Fixed Version: N/A
Secondary Software:

Problem: How do I manage image buffers in an IMAQ Vision application in Visual Basic?

Solution: In Visual Basic, the images can be stored either as part of a collection of images or may be defined on an individual basis. All of the images which are acquired during an IMAQ session are automatically placed in the collection of images. To clear this memory, use the following command:

CWIMAQ1.Images.RemoveAll

This removes all of the images in the collection. If some other images are declared individually (such as Dim myImage as New CWIMAQImage), you have to use a different command to clear this memory. The way to free this image from memory is to use the call:

Set myImage = Nothing

With these two different commands, you can clear all of the images residing in the computer's memory.

Related Links:

Attachments:





Report Date: 05/30/2002
Last Updated: 06/10/2002
Document ID: 2LTF3ANQ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit