03-19-2013 05:52 AM
Dear all,
I have created a tool in LabView developped in Vision Builder AI. I have also a VI to enable me to have an Image from a camera connected to my computer. Basically, I am trying, to get the Image from the camera being analysed by the tool I developped in VBAI. Does anyone have the knowledge to link the two attached VI's so that I can use as one, and enable a analysis of the Image.
Hope this is clear, and will appriecate any help
Thanks for your responses
Xavier
03-20-2013 08:20 AM - last edited on 11-12-2024 03:50 PM by Content Cleaner
Hi Xavier,
Thanks for posting the issue to the forums. I wanted to ask you some further questions regarding the issue you are seeing.
- What version of LabVIEW are you using? Do you have Vision Assistant aswell as VBAI?
- You have created a tool in VBAI (and subsequently generated the LabVIEW code) and you now want to run another LabVIEW VI with it? Is that correct? Or are you trying to add the functionality of the LabVIEW VI to the VBAI tool?
From what I understand the VBAI tool is the program that acquires the image and then the LabVIEW VI is what processes the image, is that correct? Or is it the other way around?
- How are you acquiring the images for processing? What type of camera do you have? A USB type connected to your computer?
I have found some relevant links that will be worth taking a look at in the mean while:
- Why do I get an Error when Calling a VI in VBAI?
- Configuring Inputs/Outputs in Vision Builder for AI and Migrating Inspection to LabVIEW
If you could explain in further detail what exactly it is you are trying that would be appreciated.
Regards,
03-20-2013 08:53 AM - last edited on 11-12-2024 03:50 PM by Content Cleaner
I would also recommend you check out the API for VBAI. This is a set of LabVIEW VIs that allows you to control VBAI programatically to load inspections, run the inspecations, and get the image and results from steps into LabVIEW where you can use these with your other LV code. Check out the shipping LabVIEW example that demonstrates this under your Vision Builder AI folder in API Examples/LabVIEW. This might be easier than trying to generate the LabVIEW code from VBAI, and it has several other advantages as well:
- makes it easy to modify your inspection in VBAI and then you don't have to worry about regenerating the LV code.
- you can easily control multiple inspection and determine when they run and get results and images using easy to use VIs instead of the complex code generated.
- you can have multiple VBAI engines running if you want inspections to run in parallel or even control a VBAI engine running on a remote target.
Hope this helps,
Brad
03-20-2013 09:40 AM
Dear Dominic,
I would be glad to give further information.
I have LabView 2012, to start with. And I do have vision assistant as well as Vision Builder, but I would rather be able to convert the tool proparely from vision builder, because this tool wasn't developped by me, and even so it doesn't seem very complex, there are functions in it, that are not available in Vision Assistant.
I am afraid it s the other way round. My Labview Vi is my principle one, acquiring the image from the camera (thermal camera), and I wanted to use the vision builder converted tool, to be able to analyse the image that I get from the camera. I have the Image from the camera, the Vi is fine, but now, I would like to know how to link these two tools.
By the way, if this can help, I have noticed that when I converted the tool on labview from vision Builder, it didn't allow me, it said that Vision builder acquired Labview 2011or above (which I have) and VDM, which I have but I wonder if all it's features are properaly installed...
Finally, the camera is linked to the computer by ethernet connection.
To conclude, I would like to analyse the picture by beeing able to work with pixel, being able to detect objects, or other similar issues I could have using a thermal camera on different metals being put in a furnace at very high temperatures. 🙂
Thanks for your help, anything would be appreciated
03-20-2013 09:43 AM
Dear Brad, I haven't checked yet, so I'm not entirely sure if this is what I was looking for, but it definitely sounds promising. I'll let you know about it.
Thank you very much for your help 🙂
Kind regards
Xavier
03-22-2013 11:25 AM - last edited on 11-12-2024 03:51 PM by Content Cleaner
Hi Xavier,
I hope you are well.
Thank you for your detailed explanation of the issue you are having.
I understand that you are trying to call the VBAI tool in the main LabVIEW VI.
As Brad mentioned, you will most likely need to use the VBAI API within LabVIEW to call specific inspection routines. This can be done with the low level functions.
I have found some useful links for you to look at:
- Multiple Smart Camera Inspections .NET VBAI/API Example
- Calling VBAI through ActiveX in LabVIEW- choosing inspection to run
- Calling VBAI through ActiveX in VB2010
I hope this helps!
Kind Regards,
05-18-2017 05:27 AM
Hello,
I am working with VBAI API in LabVIEW (Version 2013). But Continuously getting an error:
Error -354703 occurred at VBAI Interface - Open Connection.vi
Possible reason(s):
Vision Builder AI: (Hex 0xFFFA9671) Critical components of Vision Builder AI are missing or not installed.
I am using this VBAI API for the first time, don't know what causing this error to occur.
Is there any documentation available for these APIs?
Here, is the attached screenshot.
05-18-2017 09:46 AM
Is your question related to the 4 year old thread asking about how to link Vision Builder VIs to LabVIEW? If not you will find more help by creating a new thread. That being said you probably just need to reinstall Vision Builder AI or IMAQ components.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-18-2017 10:33 AM
Hello,
Thanks for the solution. Actually, We have given a solution to one of our customer completely in Vision Builder 2013. It's almost 4 years back. Now, I have started working on it & Its developed by our former developer. Am pretty new to VBAI, but I have solved this problem by reinstalling vision development module and was able to execute given VBAI example in LabVIEW.
So any suggestion or tips to become efficient in VBAI are most welcome from the community.
05-19-2017 10:46 AM - edited 05-19-2017 10:47 AM
Glad to hear it works now after reinstalling