Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Axis Camera Programming in Labview (http://www.chiefdelphi.com/forums/showthread.php?t=71524)

Striker_27 07-01-2009 19:42

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?

Sam390250 07-01-2009 20:08

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?

Tanner 07-01-2009 20:43

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

srinivas 08-01-2009 12:27

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?

ericbarch 08-01-2009 18:02

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.

Bryan Herbst 08-01-2009 22:56

Re: Axis Camera Programming in Labview
 
Quote:

Originally Posted by Sam390250 (Post 795220)
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.

Greg McKaskle 09-01-2009 07:37

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

Leon Canidae 09-01-2009 10:51

Re: Axis Camera Programming in Labview
 
:confused:
Quote:

Originally Posted by srinivas (Post 795825)
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?


Striker_27 09-01-2009 17:51

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.

Striker_27 09-01-2009 18:05

Re: Axis Camera Programming in Labview
 
It works! You have to put the template files on the cRio for it to check against.

_lukas 09-01-2009 19:19

Re: Axis Camera Programming in Labview
 
Quote:

Originally Posted by srinivas (Post 795825)
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 .


All times are GMT -5. The time now is 08:45.

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