01-16-2007 12:13 PM
01-17-2007 04:54 PM
Hello nglasser,
I believe most of your questions will be answered by this
excerpt from the Run LabVIEW VI FAQs in the VBAI Help. I will go ahead and quote it below. You can access the full FAQ in VBAI at Help » Online Help. Click Index,
and search for Run LabVIEW VI.
Q: How do I use the current image from Vision Builder AI and modify the image so subsequent steps use the modified image? In the VI Controls Tab, click the Configure button. If you have an NI Image control on the specified VI, select Current Image»Image as the value for the NI Image control. Once the current image is associated with your image control, you will have access to the current Vision Builder AI image. Any modification to the image is reflected in the resulting image after the VI is run.
Because the image passed in is the same one that will be modified, using an image display control can produce confusing results because it may not be clear if the image displayed is the original passed from Vision Builder AI or the modified version after the VI has run. It is recommended to use the NI Image control instead of the NI Image Display control to avoid confusion.
Note If you pass the current Vision Builder AI image to your VI, overlay calibration information and any other vision information in the image is preserved.
Please let us know if you have any further questions.
Regards,
Luke H
01-18-2007 08:06 AM
01-24-2007 09:17 PM
Nick,
I managed to get the functionality you are talking about working on my computer in a roundabout way. I've included the inspection, vi, and jpg files in the attached zip file. This needs to be unzipped to C:\LVImagetoVBAI\ to work properly. Here's how it works:
Of course with your acquisition you will probably have a more complex vi to grab the image (I was using RS-170), but the concept is the same - create an IMAQ Image by using the Simulate Acquisition step and pass it to the vi to be overwritten.
Regards,
Luke H