12-04-2006 09:39 AM
While benchmarking on a CVS 1454 using Basler camera, i get 100 ms, which means 10 Frames Per second. But when i run the CVS in a real application, and display the parts / second reading, it always stay below 6 parts / second.
I want to know the reason. If i am benchmarking at 100ms, then why is it not giving me 10 parts per second in real application?
Sincerely,
12-05-2006 04:50 PM
12-05-2006 08:41 PM
Dear John,
Thanks for the response. Yes i have tried the program embedded in the CVS as well. It is strange, because none of the acquisitions go past 5 parts per second (200 ms), even if i had benchmarked them at 67 ms initially. I wonder where do the additional 133 ms go? I have checked all the delays due to triggering and rejection pulses, which add up to a total of about 8 ms. I have tried both VBAI 2.6.1 and 3.0.
How about If i removed all the steps between 'acquire image' and 'decision making', should that speed up the acquisition in the embedded mode? Just to make sure if it is one of the steps inside the script that is acutally taking long. I have not tried that yet. But if doing so really speeds up the application, wouldnt that mean the benchmarking is giving out false calculations?
Sincerely,
12-06-2006 04:58 PM
03-04-2007 09:35 AM
Dear John,
I am sorry for responding so late. I have tried everything since your last email but the problem still persists. When benchmarking with the PC connected to the target, i now get 138 ms (i am doing this separately with both Golden Template Matching and some other scripts like Fast fourier filters etc.). 138 ms (7.25 parts per second) is ok for the real application. But when i run the application embedded on the CVS1454, and display the "parts per second" on the monitor connected to the CVS directly, it still shows below 3 parts per second.
When i remove the steps (Golden Template Matching or FFT filters etc.), the speed increases to above 20 parts per second. This definitely means that these steps do take a lot of processor time, but there is a difference of more than double between the benchmarked time and the embedded application time. Which is not less than a surprise for me. I am using VBAI 3.0. I have also tried the new "Inspection Setup" and "Inspection Cleanup" properties but there was no difference.
Another problem is that i am getting a "flicker" in the image overlay. i.e. the Red/Green Pass/Fail button displayed on the monitor flickers (vanishes and displays once again) every time there is a trigger on the CVS and it displays a new image. I have found out that the reason for this flickering is the "Display Image" step that i am using before "Custom Overlay". I tried to swap these two so there is the "Display Image" step after the "Custom Overlay" step in the script. It does remove the flicker but then there is another problem: When the machine stops, i.e. there is no trigger for more than 5 seconds, the Green (Pass) button on the monitor turns Red (Fail) after the camera trigger times out even if the last displayed image was correct (Pass/Green). This also turns 'ON' the rejection bit at the CVS output Port. This 'bug' was there in VBAI 2.6 for which i upgraded to VBAI 3.0 which seemed to be a definite solution but it did not work either. Ultimately i had to re-arrange the "Display Image" (i.e. Display Image => Custom Overlay) so that this atleast permits a smooth running, but trading off with Flickering.
I have 1 year ssp and some people from NI have contacted me for a solution but there is no development so far. I will appreciate if you could help me out on this one.
Sincerely,
03-05-2007 12:25 PM
03-05-2007 12:27 PM
03-05-2007 01:29 PM
Dear John,
Thanks for the tips. I have tried almost everything without awail. Anyway, I will answer your questions as below:
1- Yes the camera gets a trigger from the CVS 5 VDC TTL which actually gets this trigger from a 24VDC Proximity sensor.
2- Yes the CVS runs independently of the PC. Stand alone mode. The parts / sec on the monitor while connected to the CVS in stand alone mode displays a much lower speed as compared to what i get while doing the benchmark.
3- When i remove the Display Image step, the flicker disapears, but the Pass/Green button turns Red/Fail if the CVS does not receive a trigger for more than the maximum timeout limit (5 sec as i have put in the setup).
4- Yes, I am running the program embedded on the CVS, where the program is set to run at startup and i have included the template image into the CVS. When on the CVS, it is completely independant from my computer at that point.
The point is, it is not only the Golden Template matching that is slowing down the CVS, there are other methods that slow it down too... like the FFT i mentioned in my last message. Even if i mask the image to my desired Field Of View, it slows down so i remove the FOV and expose some undesired parts of the acquired image just for the sake of compatibility with the higher speeds of the machine with which the CVS is attached.
I also read somewhere that while benchmarking on a PC with sample images in the PC Hard Disk, it takes longer to process where as while getting the images direct from the camera is much faster. But i am getting a complete oppsite to this.
Sincerely,
03-15-2007 03:30 PM
03-15-2007 03:34 PM