Camera Code Issues

I’m trying to set up our Axis camera on the robot using Labview, but I’ve been having some difficulties. Our goal is to have the camera relay an image back to the laptop through the cRIO’s wireless connection, so we have the following code set up;
http://robotics.westwood.wikispaces.net/file/view/Visual+code.bmp/91870491
The front panel has an image display set up corresponding to the labeled point in the code, and I’m attempting to run it through the front panel’s run button (this code exists in our robot main, so the visual display does as well).

However, when I hit the run button, I get the two following errors:

  1. Error -44085 occurred at Loaded FPGA has incorrect version or revision. Library expecting Version 2009, Revision 1.0.0.
    Possible reason(s):

FRC: The FPGA bit file has an incorrect version or revision.
2) Error -44003 occurred at The operation failed because there was a failure in communication with the camera.
Possible reason(s):
FRC: Operation failed due to a communication failure with the camera.

This occurs both if I plug the laptop’s ethernet cable into the linksys router on our control board, or the driver’s station’s second port (side note, which one of those should I use?). Also, neither labview nor the robot’s image has been updated since the last time we loaded code onto the robot.

Am i doing anything wrong, or is there something I should be doing that I’m not? thanks in advance for any help.

Sounds maybe like your LabVIEW hasn’t been updated. Make sure you have the latest version.

–Ryan

  1. Error -44003 occurred at The operation failed because there was a failure in communication with the camera.
    Possible reason(s):
    FRC: Operation failed due to a communication failure with the camera.

I think the second issue is more likely. The first thing I’d do is to redo the camera setup. It is pretty easy for the button on the back of the camera to be pressed, and if pressed when powering up, the camera is reset and you lose the account and other settings.

If you’d like to verify the issue first, hook the camera directly to the development computer using the crossover (a normal patch cable will probably work on most computers). Once connected, set the computer IP to 192.168.1.10 or a similar range. Then type 192.168.1.90 into the address line of a web browser. This should bring up the login screen for the camera. If you login, check to see if you have the login account of FRC. If you cannot remember the login, go through the reset process of pressing and holding the reset button, then applying power. When the light flashes orange, release the button.

I suspect things will work fine once the camera responds to the HTTP requests. Also be sure to reset your computer IP if you have to change it for camera setup.

Greg McKaskle

ok, I’ll be sure to check both of those.

Are you hitting the run button on robot main, or on your camera code?

We’re using the run button on our robot main, which contains the camera code for the moment.

I downloaded and installed the update, although it gave me no indication of whether or not i already had the right version. I also verified that the camera still has the FRC/FRC login that the setup created for it.

Unfortunately, i’m still getting the incorrect FPGA bit file error, and I’ve narrowed it down a bit; in fact, I discovered that the computer gives the exact same error series if the robot is turned off, so it would seem that our problem lies somewhere between the computer and the cRIO. What’s the correct process for making that connection? We’re using our normal driver’s station setup and plugging the laptop into one of the other ports on the router, but that obviously isn’t working.

If your code downloads, then I don’t really think there is a comms issue. You can also test this by right clicking on the cRIO target in the project window and choosing to connect. This is a subset of the download, and if it fails, look more closely at comms, otherwise, you know you can connect.

What I’d probably do to troubleshoot is to try opening and running one of the examples. Pick one that does a single sensor or controls a motor. Open the project, change the project cRIO IP using properties, and run the example.

If it this also fails, it may be worth reimaging your cRIO, then running the example. Once it works, try your project code again.

Greg McKaskle

Thanks, hitting connect in the project explorer made it work! :smiley: