Error -1074395628 at IMAQ Learn Multiple Geometric Patterns

Updated May 10, 2023

Reported In

Software

  • Vision Development Module

Issue Details

When trying to use the IMAQ Learn Multiple Geometric Patterns VI with my custom templates, I get the following error message:

Error -1074395628 occurred at IMAQ Learn Multiple Geometric Patterns

Possible reason(s):
Invalid geometric matching template image.

 
The error message is shown in the following dialog box:
 

Solution

According to the IMAQ Learn Multiple Geometric Patterns documentation, to use this VI is necessary to generate the template images by using one of the following methods:
  • Use the NI Vision Template Editor, which can be accessed from Start >> All Programs >> National Instruments >> Vision >> Template Editor. Then, to load your templates make sure you utilize the IMAQ Read Image And Vision Info function.  
  • Create and learn the templates by using the IMAQ Learn Geometric Pattern function. You can implement a code similar to the one shown below.

Additional Information

The IMAQ Learn Multiple Geometric Patterns and IMAQ Learn Geometric Pattern are part of the Geometric Matching Feature-Based VIs. You'll have to use the Feature-Based version of the Geometric Matching VIs together to ensure they work properly without error.