Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the same camera

Solved!
Go to solution

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

 

 

0 Kudos
Message 11 of 42
(1,831 Views)

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

0 Kudos
Message 12 of 42
(1,827 Views)

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.

 

0 Kudos
Message 13 of 42
(1,815 Views)

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

0 Kudos
Message 14 of 42
(1,813 Views)

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

0 Kudos
Message 15 of 42
(1,808 Views)

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.

0 Kudos
Message 16 of 42
(1,798 Views)

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

0 Kudos
Message 17 of 42
(1,794 Views)

Check out the example in your <VBAI Folder>\API Examples\LabVIEW\LabVIEW API Example (Local).vi.

 

Hope this helps,

Brad

Message 18 of 42
(1,791 Views)

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

0 Kudos
Message 19 of 42
(1,790 Views)

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

0 Kudos
Message 20 of 42
(1,782 Views)