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

How Do I Configure Product Selection using DAQmx in VBAI?

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

Problem: What steps must I take to set up Vision Builder for Automated Inspection (VBAI) for product selection based on DAQmx digital input?

Solution: Versions 2.6 and later of VBAI allows you to switch inspections based on a digital port input using DAQmx. When VBAI is started, it will acquire an image, read the digital input port, and decide which inspection to perform on that image. To configure and use this feature:

1. Create a static DAQmx Global Channel using Measurement and Automation Explorer (MAX). To do so, open MAX, right-click Data Neighborhood, and select "Create New...".

Note: The global channel must be a Digital Port Input, not a Digital Line Input.

2. Create an acquisition inspection in VBAI. A dummy inspection must be created and run on startup. Open the VBAI Inspection Interface and select "New" from the File menu. Place a single image acquisition step in this new inspection.

3. Configure VBAI to read the selection input. Select the acquisition step (e.g. "Acquire Image 1") and select "Configure Inputs/Outputs" from the Tools menu. In the following menu, change the "Product Selection Signal Source" to "NI-DAQ Product Selection" and click Setup. Set the "Digital Input Port" to the DAQmx global channel you created earlier. Assign inspections to any input messages you plan to use. When finished, click OK, then click Done.

4. Tell VBAI to run the dummy inspection when started. First, save your dummy inspection. Now choose "Options" from the Tools menu. Browse to the Inspection tab and check the "Start Inspection when Launched" box. Choose your dummy inspection and click OK.

5. Close and reopen VBAI. The application can only use the product selection feature using the "Start Inspection when Launched" option. When VBAI opens, it will acquire an image, read the digital input port assigned, and use the appropriate inspection on that image.

Note: Be sure to connect all eight lines of your input port! Your DAQmx device may let unused inputs float when not connected, resulting in undefined values on the line. This could lead to an erroneous reading, which will cause VBAI to choose the wrong inspection.

Related Links:

Attachments:





Report Date: 09/27/2005
Last Updated: 10/03/2005
Document ID: 3PQG6GD3

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