02-29-2012 04:36 AM
I'm running VBAI on my laptop for the moment. With the .NET API of VBAI it is possible to control (launch, start inspection, get results ...) VBAI engines. I'm wondering if it
is also possible to control the VBAI engine running on a smart camera (NI 177x) in the same way. I know the VBAI engine running on smart cameras can be accessed from
a web browser, but is it also accessible form .NET? If so, is it possible to load the user interface in .NET instead of through the web browser?
( I suppose the following code addresses my first question? : SmartCameraEngine = new VBAIEngine(string ipAddress, bool forceConnection, string password) )
Solved! Go to Solution.
02-29-2012 07:32 AM
Hi,
Yes, the API allows to control remote targets like a smart camera as well. All you need to is specify the IP address of the target in the function you mentioned.
If you define a custom user interface on the inspection running on the smart camera, you should still be able to access it from a web browser, even if you control VBAI running on the smart camera using the API.
However, these two features (Custom User Interface and API) were designed to address different types of applications. The custom user interface allows to customize the Vision Builder AI inspection interface, and is accessible from a web browser for monitoring purposes. You can also set controls that you put on it.
The API was designed so that you can integrate the Vision part of your application, written in VBAI, as part of a bigger application that does not necessary include only Vision. You can build your user interface in your .NET application and populate it using the results of the call from the API. However, there is no function that lets you retrieve the custom UI image. As I mentioned, you should still be able to access it using a web browser, if you include an Internet Explorer control in your application and load the correct page.
Hope that answers your questions.
Best regards,
Christophe
02-29-2012 07:44 AM
Thanks!