06-03-2011 06:21 AM
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?
06-03-2011 11:04 AM
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