|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
After working most of last build season trying to get the camera working, and ultimately failing. We are hoping to get the camera set up and working this year.
The problem is that it doesn't. The camera works when plugged in to the laptop, both through the NI vision assistant and the web interface. However, when plugged into the cRIO, nothing works. Running the default code that came with this years kit (C++ in windriver) there is no response. Also, the link light on the port that the camera is plugged into on the cRIO doesn't light up. So far I have tried everything I can think of and I have hit a dead end. Has anyone here had any luck getting the camera working? Any suggestions? Thanks in advance, -Luke (675) |
|
#2
|
||||
|
||||
|
Re: 2010 Camera and vision problems.
Are you using a crossover cable when you plug it into the cRIO?
Eric |
|
#3
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Eric,
Yes, we are using a crossover cable to connect. Are we supposed to be using something else? The crossover cable that attaches it to the cRIO is the same as the one we used when attaching it to the PC. -Luke |
|
#4
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Many (most?) modern laptops are smart enough to compensate if you use / don't use a cross over cable by switching internally. It is possible that your laptop is tricking you by this method.
Try plugging a hub or switch into ethernet port 2 on the cRIO. Does it light up now? |
|
#5
|
||||||
|
||||||
|
Re: 2010 Camera and vision problems.
The crossover cable in the kit last year was orange. The other ethernet cables in the kit were not crossover cables.
|
|
#6
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
We have used the orange cable. And the cable we are using now is a crossover (We tested it). If I plug the computer into port 2, the lights do come up just as they do if the computer is plugged into port 1. (Although there are no comms with this method). Because of that I am reasonably sure the port is okay.
In reference to another thread on here, I made sure the Camera to Dashboard program compiles and is on the robot. And if I have a debugging console running there are no errors reported :-/ This is really irritating. -Luke |
|
#7
|
|||||
|
|||||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#8
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Which camera to dashboard program are you using?
The "Camera to Dashboard" example program does not work to my knowledge. Either build the "FRC 2010 Vision Demonstration" program, or add this to your robot's main code: Code:
AxisCamera &camera = AxisCamera::getInstance(); camera.writeResolution(k320x240); camera.writeBrightness(0); Code:
#include "Vision/AxisCamera2010.h" |
|
#9
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
DanDon: The code has that, and every part completes as expected.
jc4p: Ahhh, I will give that a go when I get back to the laptop. Is the transmit to the DS auto-magic from that point, or should I also include the PCVideoServer? Thanks again everyone for all the help. Ill report back after I test again. |
|
#10
|
|||||
|
|||||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#11
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Okay, thanks. I think I was just looking at the wrong/old pdf.
|
|
#12
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
After testing the recommended code, I still have some problems.
Code:
AxisCamera &camera = AxisCamera::getInstance(); camera.writeResolution(k320x240); camera.writeBrightness(0); The one that leads me to believe this is a hardware problem of some sort is: Quote:
-Luke |
|
#13
|
||||
|
||||
|
Re: 2010 Camera and vision problems.
Quote:
I don't know the details, but basically the ethernet port lights are off. We've tried a few crossover cables, but none of them are working. The camera works connected to a laptop, and the port works when we connect the router to port 2, so neither the camera or the cRio seems to be broken. I know we've updated the LabView software and the Dashboard software. The Dashboard update didn't work, so we tried it again, and got it to work. The last thing I know of is that the cRio is not responding to the Dashboard or something anymore. Something about the Watchdog is stopping. Anyway, don't quote me on the problems as I wasn't the one messing with it, but I wanted to add another team to the list. I think we tried everything here. I know this thread was up on the projector the whole time while the programming team tried to sort it out. Last edited by RyanN : 16-01-2010 at 19:42. |
|
#14
|
||||
|
||||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#15
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Quote:
I cannot test this till monday, but you might wanna try post 6 of this thread Hopefully reinstalling the DS update will work, but if it doesnt, this might(post 3) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vision problems and FIRST members | ebmonon36 | Chit-Chat | 10 | 21-01-2006 22:43 |
| vision camera | Adama | Programming | 3 | 19-01-2006 17:12 |
| 71's Vision Tracking Problems | Bill Beatty | Rumor Mill | 7 | 19-04-2005 17:41 |
| Camera Vision Range | Muhnki | Programming | 7 | 05-02-2005 23:26 |
| Camera Vision Range | Muhnki | Programming | 7 | 05-02-2005 23:26 |