06-10-2013 11:42 PM
Hello...
I want to know that how performance meter in vision assistant calculates the estimation time of each step?????
I mean what is the concept behind this???
please i need to know...
Thanks in advance..
06-11-2013 01:16 AM
Hello,
I think it should be something similar to this (see the attachment). If you have LV2010 or later (the attachments are saved for LV2010), you can use "High Resolution Relative Seconds.vi" (the second attachment).
Best regards,
06-11-2013 08:39 AM
Thank for the instant reply..
But the results are totally different from the results that i obtained from NI vision assistant.
06-11-2013 11:36 AM
I believe it runs the steps on the current image multiple times (ten??), then indicates the average time for each step. It probably does a simple time difference for each step, but I don't know.
The reason you are getting different results is most likely because you are using a different image. For some functions, the speed is highly dependent on the contents of the image. For other functions, they will simply scale with the size of the image. For example, particle analysis depends on the number of particles in the image (as well as the size of the image). Thresholding, on the other hand, only depends on the size of the image.
I use the estimated time for two purposes. It tells me which steps are the bottlenecks that are slowing down my analysis. If I have four steps that take 5 msec and one that takes 500 msec, I know I should try to improve on the slow one. It also gives me a rough idea of the total processing time, which I only rely on as an order of magnitude. Can I run this 100 times per second, or only one? Obviously, if timing is critical you need to do more elaborate tests with the actual images.
Bruce
06-11-2013 12:36 PM
Thank you so much
06-12-2013 01:24 AM
Hello Er.DKD,
I cannot reproduce your problem. Looking at the performance of manually coded and NI Vision Assistant coded example (the same image), the results are basically the same:
I don't know why you got totaly different results.
Best regards,
06-13-2013 05:37 AM
I understood know what was the prblem that my results were not matching...
but i have tried to bulit the code taking your VI as reference.The steps i performed in vision assiatant are:
histogram,line profile,brightness and OCR and same i have used in labview for time estimation but it is showing some errors...
I have attached the vi and the image i have used along with vision assistant.. please have a look... and help me to sort out the errors
Thanks in advance..
06-14-2013 01:52 AM - edited 06-14-2013 01:52 AM
Hello,
I have performed the same operations in Ni Vision Assistant and in LV (without OCR):
The VI is attached.
The values are very similar. Maybe I do not understand your problem correctly. Please explain, if I missed the point.
Best regards,
06-14-2013 06:16 AM
I have also tried to do the same and applied OCR also...actually I cant find line coordinates in line profile thats why I am getting different results..may be
I am unable to understand what is the problem..
I have attached the VI along with image and character set file. Please have a look..
Thanks in advance...
06-14-2013 06:58 AM
Hello,
Now, I really don't understand what are you trying to do.
Your outputs of "IMAQ Color Histogram" and "IMAQ Line Profile" and "IMAQ ColorBCGLookup" are not used anywhere. Why doing these operations then?
I would really like to help you, so please explain what are you trying to achieve step-by-step.
Best regards,