Camera Problems: not connecting to the CRIO

so i am a first year programmer for my time and only basicly understand labview.
the problem is that when we try and run the "Rectanglular Target Proccessing on the CRIO, i cant find the camera so no image appears

BUT when we run it on the computer and connect the camera directly to the PC we get an image and the targeting tracker works

PLEASE HELP

team 2761

Have you run the Axis Camera Setup Tool? If not, this should be the first thing to do. If you have, make sure you are using a crossover cable to connect the camera to the router, or it will not work right.

How exactly are you connecting your camera to the cRIO? Are you using the second ethernet port (if you’re using the 8-slot) or are you connecting it through the radio?

If you’re connecting it via the radio, then the IP address for the camera will have to be changed in the code (I think it’s 10.xx.yy.11, where xx.yy is your team number)

we are running the camera through the dlink port 2
is it a problem of me needing to put the rectanglular processing program into the main vision.vi?

we ran the setup and changed its ip to 10.27.xx.11
and which ethernet cable is the crossover? :o (we have so many of them)

Crossover cable is not required when connected through the dlink

Crossover is meant to connect two computers directly such as the camera and the cRIO. IIRC most modern PCs now can connect fine with a standard ethernet thus limiting the crossover cable’s use.

I found on my robot that the auto-configuration did not work for the camera. To fix this, I enabled anonymous viewing in the camera’s web interface. Also, looking through the source code seems to suggest that a camera connected directly to the crio should have a 192.168.0.90 address, instead of the 10.xx.yy.11 address.

alright so it doesn’t matter what cable i use
BUT back to the original problem, How do i get the Crio to run the rectangular target processor .vi

One of the built-in LabVIEW tutorials shows you the steps for adding vision processing into a robot project.

If you just want to see how the Rectangular Target Processing sample runs, open the project in Labview and click the Run button.

You enter the camera’s IP address in the sample program’s Front Panel when it’s running. You will need network access to the camera (if your computer and camera are both plugged into the DLink you are good).

You can then explore the example. Try clicking on the Color or Intensity tab and then click the reflective tape on the image of your target. It is pretty cool how easy this works.

Try lighting the reflective tape by holding a light source right by the camera. This greatly helps to find the target. If you are locating by color, colored LED lights also help tons. We ordered these from SuperBrightLEDs

1 | AEx-x: LED Angel Eye Headlight Accent Lights| $ 5.95 |
AE60-R15: 60mm Diameter Red

good luck!

I did everything everyone said and I still cant get the image to show up when running it on the crio in step 2 or 3 of the tutorial.

I think the easiest way to fix your problem is to set your camera IP address, then rather than trying to use the auto-IP detection in the code, just feed it the static IP of the camera. We found that the code doesn’t like finding the camera by itself.