08-22-2011 03:22 PM
Hello everyone,
I'm currently working on Machine Vision project. It has to measure distance of small metal elements, which moves on a conveyor. I've built and tested measurement algorithm in NI Vision Builder and it worked really cool. Today I tried to migrate inspection to LabVIEW in order to add features connected with sensors which I use in my project. When migration completed I run a VI, and suddenly got error:
Error -1074396120 occured at IMAQ Get Image Info
Not an image.
I use in my project Logitech Pro 9000, and I can see it in MAX. I acquire image in 640x480 resolution as RGB2. I read somewhere that it could be caused by RGB colors of image. In my algorithm after acquiring image is thresholded in order to get binary image.
Please tell me which block diagrams should I attach to this post to make it more understandable for you (if it is needed). Is it possible to fix this error ? Did anyone sorted it out already ? Thanks for any help.
Best regards,
Michael
08-23-2011 02:10 AM
Hello
Did you used gray level images in your Vision Assistant Script? If yes, be sure to convert your RGB image to 8bit first, because the treshold function works on 8 or 16 bit images. In order to do this, use the extract color plane function and select the luminance plane.
Another option is to use the color treshold function.
Hope this help
Jérôme
08-25-2011 01:49 AM
Hello,
It's nearly impossible to find what is the problem without seeing your code. Is it possible for you to post a snippet of those VIs that give the error?
BR, Piotr
09-05-2011 01:36 PM
First of all I would like to apologize for long delay in replying and thank you for your replies.
@toto26:
Yes, I used before threshold function a function you mentioned. The problem is that my algorithm works correctly in Vision Builder, but after migrating to LabVIEW, when I run a VI it doesn't work. It's strange for me.
The problem also occurs when I made my algorithm as simple as possible - now it includes two steps: acquisition and find edge function. After migration it still cannot acquire an image. Below I present an error and a place where it occurs (process ID already in use):
I think that it would be easier and faster when I understand IMAQ functions. I want to build my algorithm from the beginning in LabVIEW, because I would be aware of every part of my program. Please tell me if it is possible with my camera. Could you suggest me where can I find information about building vision application in LabVIEW for beginners. What keywords should I look for.
Thanks for any advice,
Michael
03-24-2014 10:38 AM
Hi MicMac89,
did you find a solution for your problem, I have the same ERROR.
Kind regards
03-25-2014 04:15 AM - edited 03-25-2014 04:16 AM
Dear @MicMac89 and @Vincent_Class
This document is describing the error and potential solutions
http://digital.ni.com/public.nsf/allkb/20AB177016DE51C0C1256F03006A74CB?OpenDocument
Please let me know if it helped. If not, it would be highly appreciated to get vi with example situation, so i could reproduce it.