Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Pattern Match leanr template + Shared Variable

Hi,

 

im loading the templates in a different VI than i do the Pattern Match.

 

Now i get the error "Invalid template descriptor" from the Pattern match function.

 

if i use Global Variables it works, but i need to use a shared variable for that...

what am i missing here?

 

 

0 Kudos
Message 1 of 2
(2,606 Views)

Under the hood, shared variables use the flatten and unflatten functions, which by default do not flatten the Vision Information (like template information, overlay, etc) attached to the image. Call IMAQ Flatten Image Options located in the Image Management palette at the beginning of your application, and set the Type of Flatten to "Image and Vision Info". This should solve the problem.

 

Best regards,

 

Christophe

0 Kudos
Message 2 of 2
(2,595 Views)