Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically start an inspection in VBAI

Hello all,

 

 

            I was wondering if there is any way to start the inspection in inspection interface using custom VI, instead of pressing start inspection button and stop button in the main menu?

 

thanks.

 

 

 

0 Kudos
Message 1 of 5
(4,401 Views)

Vision Builder AI has an ActiveX API that can be called from text-based languages or LabVIEW.  It allows the user to programmatically run inspections using the VBAI engine on their computer or on a target such as the CVS or the Smart Camera.

 

You can find examples for using the ActiveX API in:

 

C:\Program Files (x86)\National Instruments\Vision Builder AI <version>\ActiveX Support

 

or for 32-bit OS's:

 

C:\Program Files\National Instruments\Vision Builder AI <version>\ActiveX Support

 

Good Luck,

 

Evan D.
Installer R&D
National Instruments
0 Kudos
Message 2 of 5
(4,391 Views)

You can also specify in the options an inspection that you can start automatically in inspection mode the next time Vision Builder is launched.

Select Tools>>Options, then click on Startup. Enable "Start Inspection when Launched" and select the inspection that you want ti run in inspection mode the next time Vision Builder AI is launched.

 

Hope this helps.

 

-Christophe

0 Kudos
Message 3 of 5
(4,369 Views)
thank you guys all your inputs
0 Kudos
Message 4 of 5
(4,365 Views)

Thanks for pointing me in the right direction!

 

I'm new to both Visual Basic and Vision builder, and I am attempting to create a demo using both.

 

 

In the "simple example" code, I am not able to connect to the target using the example code unchanged. I have specified my full 'RedLedCheck.vbai' path at name and the code seems to get hung up on 'NIVBAITarget1.Connect' line.

 

Any suggestions?

0 Kudos
Message 5 of 5
(4,041 Views)