10-09-2012 10:58 AM
I am using VBAI 2012, yes i am applying different voltages at each test step DC 6V-75V-120, then AC 230V twice for phase then 400V twice for phase, then i test for resistance/continuity and diode test so i will see patterns and characters for these steps. Your help is greatly appreciated.
Damien
10-09-2012 12:09 PM
Here's an example of how you might do it with the state diagram and Calculator step used to help make the logic decisions. I used an OCR step to read the picture, but it might be better/more robust to use various pattern matching steps and based on which one has the best score, this will decide which picture is shown. Anyway, hope this helps. I attached the vbai inspection.
Thanks,
Brad
10-10-2012 02:18 AM
Hi Brad,
Thank you for your efforts in assisting me. The attachment you posted, they files are labview.vi's. The VBAI inspection is that the interface.vi? All the vi's i can open with labview, the only vi i can run is called the VBAI interface but my question is can i see these steps in VBAI? Do i just save the other vi's to my project folder etc. Also when i run the VBAI is there an input i need to alter/name to pick up my camera.
The other 4 vi's do i need to make changes to these?
Thanks very much Brad.
10-10-2012 04:00 AM
With the vi's are they generated through vision builder? How can i implement this to my overall project. I have attached my main.vi to date where i have individual states start up,init/etc however in the Test step state i do my camera inspection, could you outline or have a look at my vi and suggest where to use this VBAI interface vi. Thanks
Damien
10-10-2012 04:29 AM
Hey Brad,
The file extension you provide with your post is *vbai i ry to open it with vision builder but as they are vi's they only open in labview.
Apologies for all the questions.
Damien
10-10-2012 07:58 AM
For some reason the forum downloads my attachment as a zip, but it's really a VBAI inspection, so just change the extension from .zip to .vbai after you download and then you can open the inspection.
10-10-2012 09:00 AM
Hi Brad i can open that VBAI now thank you very much. To implement this in my labview code how would i assign values to the variables and what VBAI.vi blocks would i require to open the inspection and run it send the results to a db and close the inspection after the test steps. Thanks very much for your help.
Damien
10-10-2012 09:22 AM
Check out the example in your <VBAI Folder>\API Examples\LabVIEW\LabVIEW API Example (Local).vi.
Hope this helps,
Brad
10-10-2012 09:35 AM
Thanks for your help in this. In terms of the original problem. When i migrated the VBAI to labview i ran the vi and i ran in a loop using my basler camera. In the inspect state exec 2 there is a cluster parameters 1 where the camera is named cam2 name basler. When i stop running the vi and try to rerun it the vi uses my laptop camera even though the parameter is still cam2. Thanks for all your help Brad top guy.
Damien
10-10-2012 12:55 PM
So are you still planning on migrating your inspection to LV? I thought you wanted to do it all in VBAI? If you do migrate to LV, did you debug to see why it uses a different camera on the second run...I haven't reproduced anything like that here. Not sure which route your going, but hopefully you have the tools to solve your application either way now.
Thanks,
Brad