Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

when is pattern file opened

I have a dll that uses pattern matching. At what point is that .png file opened and loaded? Does is occur when the dll is loaded, or when the function that uses it is called?
0 Kudos
Message 1 of 4
(3,087 Views)
The png file would be opened and loaded when you supply its name to a function for loading the template. If you have pre-trained the template, make sure you use the load routine that includes the extra data. It couldn't load the png file when the dll is loaded because it doesn't know the name of the file yet, unless you included the load function as part of the dll initialization.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 4
(3,087 Views)
Bruce-

A VB application is loading and calling the DLL that I created in Labview. I have no control of the VB program. My DLL has the load pattern function within it and the filename is a constant. Does this mean that the pattern is loaded when the DLL is initialized in VB? Do I need to tell the person that is doing the VB program to do some special initialization routine?

Thanks,

Brian
0 Kudos
Message 3 of 4
(3,087 Views)
I've never created a dll from LV, so I can't be sure. I would expect it to load the template each time you call the dll routine. When you write a dll in C, you have more control over the initialization routines and such.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 4
(3,087 Views)