Hello,
I'm guessing you are using the IMAQVision.MatchPattern method to do your pattern matching. If so, calling CWIMAQPatternMatchReport.Item(1).Position function will return you the coordinates for the first matched pattern.
I hope this helps. Let me know if this doesn't answer your question with more detailed infomation about the functions you are using.
Yusuf C.
Applications Engineering
National Instruments