Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Run VBAI as an executable from other program

Hi
 
Is it possible to run my VBAI from another program as an executable in the background? I run VBAI for some image acquisition and processing and then send the found result via TCP to my computer. VBAI just has to run in the background without the user interfering, so I wondered if it was possible to call my "myfile.vbai" from another program to start VBAI?
 
LV 8.5
VBAI 3.5
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 1 of 4
(3,589 Views)
Vision Builder AI features an ActiveX control that you can call from another program to load an run an inspection.
When you run the ActiveX, Vision Builder AI does not show its user interface.
You can find examples on how to call the ActiveX control from either LabVIEW or Visual Basic in the <Vision Builder AI>\ActiveX Support\Examples folder.
 
Hope this helps,
 
-Christophe
Message 2 of 4
(3,583 Views)


ChristopheC wrote:
Vision Builder AI features an ActiveX control that you can call from another program to load an run an inspection.
When you run the ActiveX, Vision Builder AI does not show its user interface.
You can find examples on how to call the ActiveX control from either LabVIEW or Visual Basic in the \ActiveX Support\Examples folder.
 
Hope this helps,
 
-Christophe



Thanks a lot Christophe, it is exactly something like that I am looking for. I have never worked with ActiveX components before, so can you recommend some tutorials for LabView to get started?
 
Simon
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 3 of 4
(3,570 Views)
Hi,
 
Please take a look at this article:
 
This is pretty straightforward. Basically, you have to drop an ActiveX container on your front panel (from the containers palette), then use the Invoke Node and Property Node routines (located in the Application Controls palette) to access the methods and properties of the ActiveX control.
Vision Builder AI ships with LabVIEW examples that show how to open and run an inspection.
C:\Program Files\National Instruments\Vision Builder AI 3.5\ActiveX Support\Examples\LabVIEW\
And the following help file C:\Program Files\National Instruments\Vision Builder AI 3.5\Help\VBAIActiveX.chm describes all the methods and properties available to control VBAI with the ActiveX control.
 
Feel free to post if you have questions along the way.
 
Best regards,
 
-Christophe
0 Kudos
Message 4 of 4
(3,564 Views)