Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision builder migrating to labview... Many VI

Solved!
Go to solution

Check out the video mentioned above:

https://www.ni.com/en/shop/electronic-test-instrumentation/application-software-for-electronic-test-...

 

When you install VBAI, there will be an option to include LabVIEW support (if you have LV installed...LV 8.5 through LV 2011 is supported in the latest VBAI installer). If you select this option, the palette of VIs for controlling VBAI will be added (see the video for the location).

 

Hope this helps,

Brad

0 Kudos
Message 11 of 25
(2,005 Views)

Hi All,

 

could someone please answer the original question in this topic. I am having the same issue, and for me it is not an option to use VBAI API in TestStand.

 

BR, Kimmo

--
Kimmo Jokinen
OptoFidelity
0 Kudos
Message 12 of 25
(1,914 Views)

You actually can use the API in Test Stand. See this video:

https://www.ni.com/en/shop/electronic-test-instrumentation/application-software-for-electronic-test-...

 

If you don't want to use the LabVIEW API to control VBAI in TestStand, and you really want to migrate your inspection to LabVIEW, you will notice in the generated code there is a case structure with the names of the states from your inspection, and each state of the case structure will have a VI that inside has all the steps used in that state. These VIs that represent the steps have a boolean control to determine if they return results. You can create an indicator from the step of interest to get your results, but once you migrate and start making changes, you will have to make all these changes again if you need to modify your VBAI inspection and regenerate the LV code.

 

Hope this helps,

Brad

0 Kudos
Message 13 of 25
(1,911 Views)

Thanks Brad,

 

Yes, the Migration process is one-way only, and the generated code needs lots of modifications. For example, the generated code is by default tied to the exact camera used in inspection. It took me some time to understand that the code actually seeks for the individual camera with unique serial number. And it does not help that this feature is not well documented by National Instruments.

 

But, it is now getting more clear to me, and I think I can live with it. Thanks for your tips!

 

Kimmo

 

 

--
Kimmo Jokinen
OptoFidelity
0 Kudos
Message 14 of 25
(1,907 Views)

If you need to change things regularly and you need to have the code in LabVIEW, I would recommend using the Vision Acquisition Express VI to acquire images and the Vision Assistant Express VI to process the images. These integrate much better with LabVIEW and allow you to more easily programmatically change things. If you need to programmatically change the camera though, you may want to skip the Express VI for this and just copy one of the shipping examples for acquisition.

 

Hope this helps,

Brad

0 Kudos
Message 15 of 25
(1,902 Views)

Hi, I am trying to do something similar in a Real Time environment, so, I am not sure if using the API to control VBAI from LV is an option in this case. Please, advice.

 

Thanks!

0 Kudos
Message 16 of 25
(1,815 Views)

or using shared variables?

 

Regards

0 Kudos
Message 17 of 25
(1,811 Views)

Yes, the VBAI API allows to control VBAI engines running on Real-Time targets.

This example shows how to do it:

C:\Program Files (x86)\National Instruments\Vision Builder AI 2013\API Examples\LabVIEW Examples\LabVIEW API Example (Remote).vi

0 Kudos
Message 18 of 25
(1,810 Views)

Hey Christopher, thanks for your quick response. I was worried about the performance in RT.

 

 

0 Kudos
Message 19 of 25
(1,806 Views)

Just to be clear, you must currently run the VBAI API from LabVIEW on the host machine and you can use this to control VBAI running on an RT target. Currently you cannot use the VBAI API on a LabVIEW VI running on an RT target. Hope this is clear. If you want to run the VBAI API on RT, I'd be interested to find out more about your application. Let me know if this is the case, other wise as Christophe mentioned, there's no problem controlling VBAI on a target from your host LabVIEW using the VBAI API on Windows.

 

Hope that helps,

Brad

0 Kudos
Message 20 of 25
(1,789 Views)