10-28-2009 08:30 AM
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.
10-28-2009 03:31 PM
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,
10-29-2009 03:36 PM
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
10-29-2009 03:50 PM
05-03-2010 10:32 AM
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?