Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Counter in VBAI with Button control

Solved!
Go to solution

Hi, I developed a program of presence/absence.

I am counting the number of Pass of particular tool but not the whole inspection and displaying it in inspection interface.

Now, I want to add a Button to reset the value (Reset the counter) in Inspection interface. Please suggest how we can implement this reset button .

 

Thanks

 

 

0 Kudos
Message 1 of 3
(1,893 Views)
Solution
Accepted by topic author JN_23

Hi nirmitjain,

 

Please post your inspection and some screenshots from your state diagram otherwise no one can lead you in a correct way you need. Because the question which you asked can have different solutions and people can suggest you which is suitable for your application.

 

As a suggestion, create a "WAIT User Interaction" state in your state diagram. And whenever the Boolean Control is pressed, switch state to "Reset Counter" state in which you set the counter value to "0" (zero) constant.

 

I hope this will help.

0 Kudos
Message 2 of 3
(1,806 Views)

Hi sevincom,

 

Thanks you for suggestion.

 

It worked for my program.

 

Thanks

NJ

 

0 Kudos
Message 3 of 3
(1,797 Views)