Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Unbundel Matches cluster array

 
             Hi All....
          
             I'm currently making and application on IMAQ.   I just get a problem.   I'm using the IMAQ Match Pattern 2.  This VI has an
   output named   Matches is an array of clusters.  I'm trying to unbundle the elements.  So far I can not find the correct way to do it
  
             Need to get the elements unbundle to compare some of them.  
 
             I'll Appreciate your suggestions.
             Thanks
 
             Reynaldo Lima V
             Test Software Engineer.   
Ing. Reynaldo Lima Villarreal
Ingenieria Electronica (I N G E L)
Reynosa, Tamps. México

Cel: +52 899 160-52-59
Email: reynaldolima@aol.com
0 Kudos
Message 1 of 6
(3,914 Views)
Hello Reynaldo,

I feel your pain.  I spent a long time yesterday trying to figure out how to build the 1D Array of Clusters that particular IMAQ function I was using required.  

I think this is where your problem is.  You can't unbundle the Cluster until you index the Array.  

I've attached a little piece of code.  

Good luck.  
--

Patrick Allen
---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 2 of 6
(3,904 Views)

 

       Hello Patrick

                Thanks for taking your time to review my little issue.

                  I will take a look to the code you just sent me,  I need to finish the software i'm writting, I have my boss

        behinh me with this issue.   

                 Thanks Again

                 Best Regards

                 Reynaldo Lima.

Ing. Reynaldo Lima Villarreal
Ingenieria Electronica (I N G E L)
Reynosa, Tamps. México

Cel: +52 899 160-52-59
Email: reynaldolima@aol.com
0 Kudos
Message 3 of 6
(3,893 Views)

 

        Hi Patrick.  Good morning.

                      Hope you're doing fine, I'm doing fine.   I took a look to the vi from you,  It's what I'm looking for.  I tried on my

             sequence,  but I'm havin a error con the unbundle, it say one wire is missing or not the correct type.  I couldn't find

             whats the problem.   What I'm trying to do is to find templates on a faceplate,   I need to detect if the faceplate was

              assembled right.  I want to know if the template i have are in the faceplate and in  the correct place.  I'm thinking

              to compare  ROI and template,   I think the SCORE value will help me also,  Need to be accurate.

 

                    This is the way I'm doing. but I'm getting trouble.

                   Thanks 

                    Reynaldo Lima V.  

                    Best Regards

 

                   

 

Ing. Reynaldo Lima Villarreal
Ingenieria Electronica (I N G E L)
Reynosa, Tamps. México

Cel: +52 899 160-52-59
Email: reynaldolima@aol.com
0 Kudos
Message 4 of 6
(3,882 Views)
Hello Reynaldo,

I looked at your VI.  I wish I was more of an expert.  Clusters are still giving me some difficulties too.  

I changed the unbundling of the indicators that were giving the error.  It seem to alright now, although I'm not exactly sure why what you had wasn't working.  (Although my coding abilities have been hampered slightly by a couple glasses of wine this afternoon)

Hope this is what you were looking for.

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 5 of 6
(3,876 Views)

 

           Hi Patrick.   good morning.

                 Thanks for your help the VI you sent to me, it's working good.  I put it into my main sequence and is OK,  I was stuck with this issue,  Thanks Again.

                 I'll keep in touch.

                Reynaldo Lima V.

               

   

  

Ing. Reynaldo Lima Villarreal
Ingenieria Electronica (I N G E L)
Reynosa, Tamps. México

Cel: +52 899 160-52-59
Email: reynaldolima@aol.com
0 Kudos
Message 6 of 6
(3,859 Views)