ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision Builder using Custom Tools

Hey Guys,

 

I am looking to display the reason for the failure with the custom overlay. For example i am trying to match two or three patterns, at the moment I have it displaying pass if everything passes and fails if my logic calculator decides it fails. But if pattern two fails I want that to show in the custom overlay or if pattern two and three fails i want both to be displayed. Can this be achieved with custm overlay? Also i am having difficulty displaying the output from my read/verify tool in custom overlay. Example if my text reads 123 note that the text varies each time???

 

Any advice much appreciated

 

Damien

0 Kudos
Message 1 of 4
(3,613 Views)

Instead of using a Logic Calculator step, try to use a GCalculator step. You can create inputs corresponding to the status of each of your pattern matches, and a string output that you can use in the Overlay step. Within the GCalculator step, set the string accordingly based on the failure of the pattern matching step.

 

-Christophe

0 Kudos
Message 2 of 4
(3,606 Views)

Hey Christophe

 

Is the GCalculator you are referring in the additional tools in vision builder?

 

Thanks

 

Damien

0 Kudos
Message 3 of 4
(3,582 Views)

Hey Christophe,

 

With the overlay results the boolean indicator is set by the value I have which is the inspection status step, it only allows one value. So its either pass/fail, but how can i display on the overlay that for fail its one of 3 or 4 patterns not matching. Example fail because A did not match or because B did not match.I have tried to do as you outlined and created the strings for output. If i put in text it outputs the exact text i enter is it ossible for the text to vary depending on the failure?? Thanks

 

Damien

0 Kudos
Message 4 of 4
(3,578 Views)