LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disposing of Images using IMAQ Dispose: most efficient method?

Hello All;
 
What is the most effective way to dispose of images in multiple VIs?  For example, my application uses the IMAQ tools included in the NI Vision package (IMAQ v7.1 I believe, in conjunction with LabVIEW 8.0).  I have several independant VIs that may analyse or display a single image:
     (1) Image Server acquires an image from a file or framegrabber and makes it available to different toolsets;
     (2) Image Viewer receives the image reference from Image Server and displays the image for the operator;
     (3) Line Profile Tool performs line profile analyses on the image, and therefore maintains a reference to the image;
     (4) Histograph tool performs histograph analyses on the image, and therefore also maintains a reference to the image;
All the above are completely separate VIs that in effect run in parallel and exchange information via queues.
 
My understanding of the IMAQ functions is that IMAQ effectively functions as its own image server, which is why only the reference to the image is passed between VIs.  If this is the case, then is it true that every time I use the IMAQ Dispose function that all my image references in all my VIs are disposed of?  In which case, where and when is the best time to dispose of an image, in order to acquire a new image?
 
Or, does each VI need to dispose of the image when finished processing?  Either way, I want to be sure that I am using the most efficient method available.
 
Thanks and Regards,
DJH

Message Edited by Hannamon on 03-10-2006 09:55 AM

0 Kudos
Message 1 of 1
(2,773 Views)