Go to Post I think I just found a way to replace our entire robot drive team! (no big deal, they are graduating anyway!) :D - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 01-02-2012, 13:42
brunoUC's Avatar
brunoUC brunoUC is offline
Registered User
AKA: Bruno Toso
FRC #1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Novo Hamburgo, RS, Brasil
Posts: 20
brunoUC is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2012, 13:58
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
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...
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2012, 10:30
brunoUC's Avatar
brunoUC brunoUC is offline
Registered User
AKA: Bruno Toso
FRC #1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Novo Hamburgo, RS, Brasil
Posts: 20
brunoUC is an unknown quantity at this point
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2012, 12:37
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: ni vision assistant help!

Quote:
Originally Posted by brunoUC View Post
...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.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2012, 16:06
brunoUC's Avatar
brunoUC brunoUC is offline
Registered User
AKA: Bruno Toso
FRC #1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Novo Hamburgo, RS, Brasil
Posts: 20
brunoUC is an unknown quantity at this point
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?
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2012, 01:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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