Go to Post "It is a guaranteed fact that at least one rookie team will name their robot 'Chuck Norris'." - Tim Arnold [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2013, 23:09
theface3352's Avatar
theface3352 theface3352 is offline
Registered User
AKA: Luke
FRC #3352 (Flaming Monkeys)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2010
Location: Belvidere
Posts: 13
theface3352 is an unknown quantity at this point
Implementing the Camera Example

Hi,
I'm having trouble implementing the 2013 camera example into our Labview program. If I copy and paste everything in I get a conflicting vi error once I put the rectangular target main.vi or the vision processing vi in. All we need from the camera is the distance to the target. So am I just putting the code in wrong, or should I try something else?

All help appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2013, 00:44
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Implementing the Camera Example

I would suggest undoing anything you have done so far, as following the steps below may conflict with earlier attempts.

1. Create a copy of the "Rectangular Target - 2013" folder that can be found in your LabVIEW program files (let me know if you need help finding it).
2. Move this copied version of the folder into your project folder
3. Open up your project
4. Right click on Vision Processing.vi and click "replace," then select the Vision Processing VI in the "Rectangular Target - 2013" folder that you just copied.
5. Follow the prompts. You'll be told that there are conflicts. For all of them, select the file that was in your original project - not the one that is in the "Rectangular Target" folder.
6. The final prompt will ask again if you want to use the new Vision Processing VI instead of your original one. Confirm that you want to use the one in the "Rectangular Target - 2013" folder.

Once you save the project, go into the new Vision Processing VI and search for the broken wires. You will have to create a new global variable to replace the one that you told it not to reference anymore.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2013, 15:38
rakesh3352 rakesh3352 is offline
Registered User
FRC #3352
 
Join Date: Feb 2013
Location: Rockford
Posts: 3
rakesh3352 is an unknown quantity at this point
Re: Implementing the Camera Example

How do I output the computed distance from the camera on to the dash board?
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2013, 17:33
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Implementing the Camera Example

If the distance was computed on the robot, use SmartDashboard to publish it. I believe it already has been published as a "Target 1 Info" array of numbers.

Then you need to follow the comments on the dashboard diagram to either bind or read and display the value.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2013, 17:53
rakesh3352 rakesh3352 is offline
Registered User
FRC #3352
 
Join Date: Feb 2013
Location: Rockford
Posts: 3
rakesh3352 is an unknown quantity at this point
Re: Implementing the Camera Example

How do I display distance on the message area (without using smartdashboard)?
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2013, 09:44
crollison crollison is offline
Registered User
AKA: Chris Rollison
FRC #4809 (Black Knight Robotics)
Team Role: Coach
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Marceline, MO
Posts: 57
crollison is an unknown quantity at this point
Re: Implementing the Camera Example

I have been trying to follow the directions on how to incorporate the vision example and have hit a road block. The directions say to recreate the global variable. I find the global variable with the broken wires, but have no idea of how to recreate it. Having to change directions at the last minute and this is stumping me. Thanks for any help.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-02-2013, 00:13
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Implementing the Camera Example

Quote:
Originally Posted by crollison View Post
I have been trying to follow the directions on how to incorporate the vision example and have hit a road block. The directions say to recreate the global variable. I find the global variable with the broken wires, but have no idea of how to recreate it. Having to change directions at the last minute and this is stumping me. Thanks for any help.
Right click on the target info cluster (pink wire), right before it enters the shift register at the far right side of the vision tracking code. This should be the same wire that is going into the broken global variable. Once you have right clicked, click "create constant." Now, open up your Global Variables VI and drag this constant from the Vision Processing VI to the Global Variables VI. It will create a new global variable - simply rename it "Target Info" and you're good to go. You can now delete that constant you created.
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 12:09.

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