Hello,
You cannot simply use IMAQ write PNG file to save a pattern image. The pattern image file must contain pieces of information concerning the pattern itself. You must acquire and image learn the template (with the appropriate VIs) and save the learned image in a .png file.
Regards
Loranger