Go to Post "We used to shut the robot up in a box and send it away from home. Now we just suffocate it." - GaryVoshol [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: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-01-2009, 19:42
Striker_27 Striker_27 is offline
Programming Team
AKA: Robert Arden
FRC #0027 (Team RUSH 27)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Davisburg, MI
Posts: 6
Striker_27 is a jewel in the roughStriker_27 is a jewel in the roughStriker_27 is a jewel in the rough
Send a message via AIM to Striker_27
Axis Camera Programming in Labview

So our programming team has been able to set up and properly connect the camera and get a live feed from it in Labview. We took a picture with the camera sent it to the NI Vision Assistant, and made a subVI that searches for a template of the green color on top and the pink on the bottom. On the picture in the Vision Assistant the template is recognized and so are single colors. The images can be seen in the subVI but no matches are recognized. When we try to implement this in our main project it also doesn't give us any output. Any ideas of what we could do to fix that?
Reply With Quote
  #2   Spotlight this post!  
Unread 07-01-2009, 20:08
Sam390250's Avatar
Sam390250 Sam390250 is offline
Positively Charged
FRC #0930 (Mukwonago B.E.A.R.s)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Mukwonago, WI
Posts: 68
Sam390250 is a splendid one to beholdSam390250 is a splendid one to beholdSam390250 is a splendid one to beholdSam390250 is a splendid one to beholdSam390250 is a splendid one to beholdSam390250 is a splendid one to behold
Send a message via AIM to Sam390250
Re: Axis Camera Programming in Labview

Did you have any problems getting Vision Assistant to create a VI for LABView? We are getting an error since we are using an "Evaluation" version of Vision Assistant...? Do you have a link to the tutorial you used to get the camera up and running?
__________________
If you're not intrigued, you're in trouble.


930's Harlem Shake (Only one broken leg ;] )
Reply With Quote
  #3   Spotlight this post!  
Unread 07-01-2009, 20:43
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Axis Camera Programming in Labview

Well, you didn't tell Vision Assistant you wanted to output anything.

What you need to do is possibly output a Particle Analysis using Vision Assistant. There you can select what you want to be outputted (area, x/y positions..etc) and then in LabView you get that returned in a array. Manipulation from there is easy.

-Tanner
Reply With Quote
  #4   Spotlight this post!  
Unread 08-01-2009, 12:27
srinivas srinivas is offline
Registered User
FRC #1677 (QUANTUM NINJAS)
Team Role: Mentor
 
Join Date: Oct 2007
Rookie Year: 2007
Location: michigan
Posts: 2
srinivas is an unknown quantity at this point
Send a message via Yahoo to srinivas
Re: Axis Camera Programming in Labview

how did u guys get the camera working? We are working in LabVIEW to get the camera output but were not successfull..
Can anyone please help?
Reply With Quote
  #5   Spotlight this post!  
Unread 08-01-2009, 18:02
ericbarch's Avatar
ericbarch ericbarch is offline
221 Robotic Systems Engineer
FRC #0027 (Team Rush)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Clarkston, MI
Posts: 15
ericbarch is a jewel in the roughericbarch is a jewel in the roughericbarch is a jewel in the roughericbarch is a jewel in the rough
Send a message via AIM to ericbarch
Re: Axis Camera Programming in Labview

We have the Vision Assistant creating a valid VI that detects what we want and gives us the position of it. It works when manually browsing for a webcam image and allowing it to process. As soon as we set it up on the cRIO with the webcam it gives us back all 0s for the values.

I know the SubVI is getting the webcam images because we have an output to display the image it's processing and it's updating just fine.

We followed exactly what the vision documentation showed for using the vision assistant with the cRIO. We've re-read it several times and double checked everything...just don't understand why the SubVI doesn't process the images when it's running on the cRIO.
__________________
Eric Barch
221 Robotic Systems
Controls Engineer
http://team221.com
Reply With Quote
  #6   Spotlight this post!  
Unread 08-01-2009, 22:56
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Axis Camera Programming in Labview

Quote:
Originally Posted by Sam390250 View Post
Did you have any problems getting Vision Assistant to create a VI for LABView? We are getting an error since we are using an "Evaluation" version of Vision Assistant...? Do you have a link to the tutorial you used to get the camera up and running?
I ran into this problem also.
The problem was that the software has both the professional and FRC versions (or at least we ended up with both, possibly from last year). The FRC version was not activated, the professional version was under an evaluation license.

The solution was to go into the License Manager, open up the licenses, and click the empty square next to all of the FRC versions. A full yellow square means it's activated, a half filled yellow square means evaluation copy, and empty means you cant use it at all.
You may also have to restart the vision assistant.
__________________
Team 2052- KnightKrawler
Mentor and volunteer
Reply With Quote
  #7   Spotlight this post!  
Unread 09-01-2009, 07:37
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,752
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: Axis Camera Programming in Labview

If you generate or build code that uses a template image, LabVIEW doesn't know anything about that template file. The diagram loads the template from disk using file I/O.

It is pretty easy to forget that you also want to put the template on the cRIO using ftp or explorer ftp, and modify the diagram to point to the cRIOs template. Don't forget that if you update the template, you need to ftp it again.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 09-01-2009, 10:51
Leon Canidae's Avatar
Leon Canidae Leon Canidae is offline
Official Insanity
FRC #1742 (Shockwave)
Team Role: CAD
 
Join Date: Jan 2008
Rookie Year: 2006
Location: MNTC
Posts: 8
Leon Canidae is an unknown quantity at this point
Send a message via MSN to Leon Canidae
Re: Axis Camera Programming in Labview

Quote:
Originally Posted by srinivas View Post
how did u guys get the camera working? We are working in LabVIEW to get the camera output but were not successfull..
Can anyone please help?
__________________
“Introduce a little anarchy, upset the established order, and everything becomes chaos, I’m an agent of chaos , and you know the thing about chaos? It’s fair.”
- The Joker
- "The Dark Knight"
Reply With Quote
  #9   Spotlight this post!  
Unread 09-01-2009, 17:51
Striker_27 Striker_27 is offline
Programming Team
AKA: Robert Arden
FRC #0027 (Team RUSH 27)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Davisburg, MI
Posts: 6
Striker_27 is a jewel in the roughStriker_27 is a jewel in the roughStriker_27 is a jewel in the rough
Send a message via AIM to Striker_27
Re: Axis Camera Programming in Labview

We found a tutorial from NI that explains how to FTP the template files to the cRio to do image processing. The link to the tutorial is http://decibel.ni.com/content/docs/DOC-3032 we haven't tried this yet but it seems to be the fix we're looking for.
Reply With Quote
  #10   Spotlight this post!  
Unread 09-01-2009, 18:05
Striker_27 Striker_27 is offline
Programming Team
AKA: Robert Arden
FRC #0027 (Team RUSH 27)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Davisburg, MI
Posts: 6
Striker_27 is a jewel in the roughStriker_27 is a jewel in the roughStriker_27 is a jewel in the rough
Send a message via AIM to Striker_27
Re: Axis Camera Programming in Labview

It works! You have to put the template files on the cRio for it to check against.
Reply With Quote
  #11   Spotlight this post!  
Unread 09-01-2009, 19:19
_lukas _lukas is offline
Registered User
FRC #1414 (iHOT Robotics)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Atlanta, GA
Posts: 2
_lukas is an unknown quantity at this point
Re: Axis Camera Programming in Labview

Quote:
Originally Posted by srinivas View Post
how did u guys get the camera working? We are working in LabVIEW to get the camera output but were not successfull..
Can anyone please help?
You need to configure the camera first. To do this follow the steps in section 5.5 found in http://usfirst.org/uploadedFiles/5-F...ation-0-5c.pdf
. After that you need to set the IP address to 192.168.0.90 .
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Model of Axis Camera Bochek CAD 2 18-01-2009 17:50
Programming the axis camera...... programmr C/C++ 10 11-01-2009 12:23
AXIS Camera nickmagus Programming 1 03-01-2009 20:06
Getting feedback from Axis Camera?? *programming in C++* Straberrie Programming 3 01-01-2009 22:39
axis camera - problem s0crates FRC Control System 11 16-12-2008 09:34


All times are GMT -5. The time now is 22:15.

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