Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   ni vision assistant help! (http://www.chiefdelphi.com/forums/showthread.php?t=101702)

brunoUC 01-02-2012 13:42

ni vision assistant help!
 
hi, this is my first time programming the camera and i'm having some trouble using the ni vision assistant.
I'm trying to locate the rectangle in the basket by converting the image to grayscale and then to binary but i wasn't able to make the program locate the rectangle. i've already read the white paper and other tutorials but i couldn't find anything that helped me.

thanks from team #1156

zaphodp.jensen 01-02-2012 13:58

Re: ni vision assistant help!
 
If you use the example vision code, everything is taken care of, and is much more accurate than any code that our team has ever drafted up...

brunoUC 06-02-2012 10:30

Re: ni vision assistant help!
 
thank you, the example is realy useful i've already adapted it to our robot code and it's working as it should. But i've been trying to use the distance and coordinates that it gives me and i couldnt find a way to separate the informations from the array.
also, is there any way to use select the color i want without opening the code and using the pointing tool?

Alan Anderson 06-02-2012 12:37

Re: ni vision assistant help!
 
Quote:

Originally Posted by brunoUC (Post 1120906)
...i couldnt find a way to separate the informations from the array.

Use the Index Array function from the Array function palette. You can choose which of the elements of the array to pull out as a single cluster of values. Then to get the individual values from the cluster you use a function from the Cluster, Class, & Variant palette: Unbundle by Name.

brunoUC 13-02-2012 16:06

Re: ni vision assistant help!
 
thank you!
i managed to aquire the coordinates and distances, but i still couldn't make the program find the color of the tapes without selecting it, is there a way to place it on the dashboard or something like that?

Alan Anderson 14-02-2012 01:23

Re: ni vision assistant help!
 
Run the code so you can see the vi's front panel. Select the color you want to seek. Then you can stop the code and use the right-click menu on each of the six numeric color range values and choose Data Operations>Make Current Value Default (I'm typing this from memory and might not have gotten the names quite right). That makes the change stick for the next time you run or build the code.


All times are GMT -5. The time now is 11:36.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi