Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Golden Template PNG file

I am having problems creating a Golden Template PNG file.  The approach I am trying is to use the "IMAQ Extract" VI to create an image with the info I'm interested in and then save this image to the hard disk using the "IMAQ Write Image And Vision Info".  Unfortunately when I try using one of these templates with a Golden Template inspection routine I get an error message saying that this is not a template.  Any suggestions?
0 Kudos
Message 1 of 5
(4,378 Views)
jhess--

     I am going to assume that you looked at the shipping example "Golden Template Inspection Example"  In this example the template file already has the golden template information added to the file.  From there they make sure to use the read w/ info (rather than plain read) to open the file and preserve the info.  So at some point they used the Learn Golden Template VI to make sure that info is there first and then you'd use the write info vi to save and preserve this info.  I just wanted to make sure that you are using that first.  If so, post whatever else is going on so that anyone else that reads this will know and has a chance to post.  Thanks

Regards,

John H
Applications Engineer
National Instruments
http://www.ni.com
Message 2 of 5
(4,362 Views)
Hi John,

I've just started on a new NI Vision project with a "clean" machine.  LV 7.1, Vision 8.2.3.....I think.  This is where things get confusing. 

I installed the vision libraries (I think) and was able to connect MAX to my firewire camera.  But then I noticed that Vision Assitant wasn't installed.  So I dug out my CDs and installed it. 

I've been looking all over this machine for "Golden Template" and I can't find it anywhere.  No references in any of the help files.  No VIs on the disk with the name "golden" in them.  Do have the wrong version or something? 

Any insight here is appreciated.  I'd hate to waste more time looking for something that isn't there.

Regards,

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 3 of 5
(4,189 Views)
Hi Patrick,
 
The Vision Development Module 8.2 does have the Golden Template VIs. They are bundled in the "inspection.lib". Please verify that you have this library at "C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\vision\Inspection.llb".
 
In Vision Assistant, you can find this step in the Machine Vision menu. In LabVIEW, it appears in the Machine Vision>>Inspection palette. If you donot find them in these locations, try re-installing the Vision Development module.
 
Thank You,
Jaidev Amrite
National Instruments 
Message 4 of 5
(4,166 Views)
Thanks for the reply Jaidev.

As it turns out, we only have Vision 7.1 and I think that was before the Golden Template capability was added.  Looks like it's time for an upgrade.
---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 5 of 5
(4,159 Views)