Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Display all images on vbai rather than just the most recent

I am curious as to what I would need to do in order to display two or more images on the VBAI 2.5 inspection screen.  Currently I use VBAI 2.5 on 4 CVS1456 units.  The majority of the inspections I am doing on these machines involoves the use of two or three images of one part (each part is broken into 2 or 3 sections for analyzing).  As you know, when using VBAI inspection mode, you can only display one image at a time on the display monitor (being the last image selected prior to the "Display Image" step).  Can this be done?  What tools are necessary to do this?  Can this be done with the software I have now... VBAI 2.5, LabView6i?  Thanks

Message Edited by jimbonic on 07-28-2005 12:25 PM

0 Kudos
Message 1 of 7
(4,547 Views)

Hello,

Currently, you cannot display two images at once from a CVS application.  It is one of the issues that our R&D department is considering for future versions (it will not necessarily be address).  There is a work around that would require that you combine two of your images into one image.  There is a Vision VI that can resample an image so that it is scaled down to smaller dimensions.  Then, there are a number of ways using Vision VIs that you can combine two smaller images into one full size image that displays both of them in it.  To call a LabVIEW VI from VBAI, you will need VBAI 2.6 and LabVIEW 7.1.  You will also need IMAQ Vision 7.1 (different from the IMAQ driver).  If you are interested learning more about any of these products, please let me know.  I hope this helps.  Take care!

Regards,
 
Aaron B.
National Instruments
Message 2 of 7
(4,527 Views)
Hey Aaron,

I have exactly the same problem. I would like to display two images on one screen (one image for the first camera and the second image for the second camera). I have LabVIEW7.1, VBAI2.6.1, IMAQ Vision, and CVS1454. Therefore, could you advise how to do this application or any sample code ?

Thanks in advance.

Best Regards,
Pravee


0 Kudos
Message 3 of 7
(4,423 Views)
Good afternoon Pravee,
 
Unfortunatele, VBAI will only allow you to display one image at a time to the screen, so we will still need to follow the general procedure of "shrinking" these images and then combining them.  Here is the general process that you will need to follow.  You will need to create a LabVIEW VI that you can call from within VBAI using the Run LabVIEW VI step.  This VI will need to do the following:
  • Take in your two images
  • Resample both images (using IMAQ Resample.VI) to be smaller (about half the size of the original image)
  • Combine both images to be portions of a larger image.  (You can use IMAQ ImagetoImage to perform this.  The second image will need to be put at an offset.)
  • Now, you will have one image that has both of your previous images as "half" of it
  • You can pass this image back out and then use it in VBAI

I am actually attaching a small piece of code that opens up two images and does this process to them.  I pasted notes onto the block diagram to clear a few things up!

I hope that this information is helpful!  Please post back if you have any further questions!

Respectfully,

0 Kudos
Message 4 of 7
(4,395 Views)
Hi Jeffrey,

Thank you for your comment. However, I have not seen any of your attached file yet. Could you reattached it again ?

Thanks in advance.
Pravee
0 Kudos
Message 5 of 7
(4,382 Views)
Pravee,

Sorry about that Smiley Sad

Respectfully,

Message Edited by Jeffrey P on 08-22-2006 10:03 AM

Download All
0 Kudos
Message 6 of 7
(4,368 Views)

Hello all... 🙂

 

      Even I have the same problem... I'm using VBAI 3.5 & LabVIEW 8.5... I converted your VI to 8.5.... Actually in my application I have to use two cameras on similar table with different work... I have to take pictures from both the cameras n give result... n I want this happens simultaneously.. But using your VI it will happen on the same time... Is possible to take pictures from two different cameras n give results independently using one operating system...?

Thank you for any help from you... 🙂
Message Edited by Rupali on 01-11-2009 01:16 AM
0 Kudos
Message 7 of 7
(3,752 Views)