Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Handling Image Acquisition Timeouts in VBAI

Primary Software: Vision Builder for Automated Inspection
Primary Software Version: 3.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
Sometimes in my Vision Builder for Automated Inspection (VBAI) applications I get an acquisition timeout. The rest of the inspection steps fail because there is no image. How can I force VBAI to acquire an image before moving on?

Solution:

As of VBAI 3.0, you can resolve this behavior by separating the acquire state from the rest of your inspection. You can keep your VBAI inspection from moving past the Acquire Step until it has successfully acquired an image.  By doing this, the inspection will never encounter an inspection failure so your inspection will not return a fail.  Thus when you run your inspection continuously it will continue only running the acquire step until it succeeds in acquiring an image.

When you are creating your inspection, you will want to edit your state diagram to have another transition from the acquire state.  A simple example:

 

The inspection state diagram is composed of two states:

  • The first state acquires the image. If the acquisition step succeeds, a transition leads to the second state which is the start of the inspection of the image. If the step fails (default transition) it transitions to the end point.
  • The second state inspects the image and sets the inspection status (pass/fail). Note that this state will run only when an image has been successfully acquired.

 This is particularly helpful with triggered acquisition which is more prone to timeouts, a timeout will cause the acquisition step to fail and fire the default transition but not fail the inspection.



Related Links:

Attachments:


StateDia.JPG - StateDia.JPG
StateDia.GIF - StateDia.GIF



Report Date: 02/02/2007
Last Updated: 02/09/2007
Document ID: 461E6KL6

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit