10-28-2010 03:49 AM
Hi,
I have one question. How could I do in Vision Builder AI 2009, that when I capture picture with NI Smart Camera 1744, and then I set where the program must check error ( on some display), and then this picture must program safe. And then I again capture picture and now program must compare first picture with second picture. If picture are same its ok, but if picture its not same, then second picture must safe instead of first picture. And when i capture again picture must repeat whole process.
is this possible?
please help
Matjaz
11-05-2010 04:47 AM
Hi Matjaz,
Can I ask you to tell what exactly you want to do? Reading your post there is one thing I didn't quite understand. After, as you said, you compare first picture with second one, if they are not the same you want to save that second picture. What comes after this is what confuse me. Do you want to compare pictures you acquire always with your original template picture and save them if comparison fails, or you want to compare them with previously saved picture and overwrite that saved picture every time comparison fails? So, in the other words, what is that you want to have at the end of your inspection - saved all the pictures which didn't mach first original image, or saved only the last picture which didn't satisfy your conditions? Knowing clearly what you want to do with your program will help us in solving your problem and giving you proper advise.
Thank you,
Milos
11-05-2010 05:23 AM
Hi Milos,
I want compare picture with previosuly saved picture and overwrite saved picture every time if comparison fails. That on the end, I want to have only one saved picture.
thank you,
Matjaz
11-05-2010 07:36 AM
Matjaz,
Thanks for fast reply. You can use Simulate Acquisition function for opening picture with which you want to compare acquired pictures. Simulate Acquisition function will always open the file with same path and name,so you should bear this in mind when saving picture (be sure you are overwriting). Before any procesing or any function you use in your program you can use Select Image function to select picture (acquired or opened) on which you want to apply that specific action.
You can than do same procesing on both of the pictures and than compare results of interes through Logic calculator function in to see if two pictures match or not, and by so you decide whether to save acquired picture or not.
Regards,
Milos
11-15-2010 03:55 AM
Hi Matjaz,
If you don't have any other questions regarding this topic I will close service request. Please let me know if you have any questions. Have a great day.
Best regards,
Milos
11-15-2010 05:29 AM
hi Milos,
I forgto to tell You that Your solution was OK. Thank You for all help.
Yes You can close this topic now.
Thank You again
Hava a great day
Matjaz