LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the co-ordinates of detected objects which is detected in NI Vision builder when deployed in LabVIEW?

i have detected the eye ball and i can see the coordinates of eye ball in vision builder but when i am deploying in labview how to get the coordinates of the eye ball.. i have attached the eyedetection.vbai file. Please guide me.and thanks for viewing my post and helping me on.

0 Kudos
Message 1 of 3
(2,455 Views)

I would advise you to look at the VBAI LabVIEW API. Examples are located here:

C:\Program Files (x86)\National Instruments\Vision Builder AI\API Examples\LabVIEW Examples

It allows to control Vision Builder AI from LabVIEW (start a VBAI engine, open and run an inspection, and retrieve step results). This should be what you need if you need synchronization between your LabVIEW program and the VBAI inspection.

Another solution, that would be recommended from monitoring (when you don't need tight synchronization between the inspection running and the LabVIEW program), is using system shared variables. In VBAI, declare system shared variables and use the Set Variable step in the inspection to set them.

Then in your LabVIEW project, you can add and read those variables from your VI. These application notes and short webcast describe how to implement this solution.

http://www.ni.com/webcast/2059/en/

http://www.ni.com/tutorial/12322/en/

Hope this helps.

Christophe

Message 2 of 3
(2,449 Views)

SIR I HAVE DEPLOYED IN LABVIEW THE CODE  I AM ABLE TO DETECT THE EYE BALL IN LABVIEW ALSO BUT CANNOT ABLE TO GET THE CO-ORDINATES WHILE DETECTING THE OBJECTS THERE I AM ABLE TO SEE CO-ORDINATES

0 Kudos
Message 3 of 3
(2,431 Views)