LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

-1074396120 error when using IMAQ learn color pattern VI

Solved!
Go to solution

Hi,
I am trying to create a simple Sub Vi for comparing images. A user is supposed to choose an image from a certain folder, after which the picture should get compared to a template. However, I get a "Not an image" error from IMAQ learn color pattern even though I am sending it a png.

0 Kudos
Message 1 of 5
(2,368 Views)

You are using Express VIs, and who knows what's happening inside them!  Can you please attach the image file (.png) that caused the problem?  I'll try to use regular LabVIEW "Read Image" function, and if successful, I'll share the code with you here.

 

Bob Schor

0 Kudos
Message 2 of 5
(2,343 Views)

Here it is .
Thank you a lot for help

 

0 Kudos
Message 3 of 5
(2,318 Views)
Solution
Accepted by topic author Anathalena

Got it.  I hope to be back shortly ...

 

Bob Schor

 

That was quick -- I'm able to edit my earlier response from about 5 minutes ago.  Here is the code -- an IMAQ Create to create the Buffer needed to hold the Image, and an IMAQ ReadFile 2 to read the Image and send it to an Image Display.  The last function is the Simple Error Handler, which (since there was no error) just sits there silently.

View kafa2.png

Here's the result:

kafa2 Image.png

Message 4 of 5
(2,303 Views)

Yup that solved it. Thank you!

0 Kudos
Message 5 of 5
(2,291 Views)