Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

end a vi and start a different vi

when I finish taking picture with my Imaq hardware and software, I have the pictures in files in the hard drive. Now I would like to start my VI to analyze the files. How do I start my analysis.VI after capture vi? Is there any memory resource benefit for me to do this?
0 Kudos
Message 1 of 3
(2,810 Views)
It is possible to split your acquisition and processing into two VIs. You could write a higher level VI that uses VI Server to first call the acquisition VI that acquires and saves the images to disk, and then calls your processing VI which will reload the images (IMAQ Read File) and process them. This would work, but would probably not be the most efficient method, since file IO is a relatively slow process.

It is often a good idea to have the processsing in the same VI as the acquisition. If your total acquisition is small enough to fit in memory, then you could store all of the images in user defined image buffers. This allows you to access the image data very quickly from RAM by simply passing references to the images.

Regards,

Brent R.
Applicati
ons Engineer
National Instruments
Message 2 of 3
(2,810 Views)
Brent,
Does VI Server a new thing in LV 6.1? I have LV 6.0
For now, I probably go with the slow process, until I have more confidence, I will move to your second suggestion.
Thank you very much for pointing out the alterantive approach. I am not clear about access the image data very quickly from RAM. How do I begin to do this?
0 Kudos
Message 3 of 3
(2,810 Views)