Can't get camera image from Axis M1011

I’m trying to run the default 2013 vision sample with the axis camera, but I can’t aquire an image from it. It crashes on the line where it first tries to access the image from the camera and the image is a NULL pointer. I manually configured the camera settings based on the guide because the camera config tool wouldn’t work. What would be causing me to get a NULL image from the axis?

I tried passing the correct ip address to the axis camera’s instance method but it still returns an empty image. It returns an error code of 0, but the image returns -1 as it’s width and height. I also set the FRC user and password, enabled anonymous viewers, and double checked the ip address. It’s an Axis M1011 and the docs say the class is used for the Axis 206. Is there an M1011 class somewhere? Or does the AxisCamera class work with the 1011 also. Also, I installed the new team update, so all the software should be up to date.

We started this year with the 206, and last week received the M1011. We had no problem changing the camera without any code change. We are programming in C.

If you are manually configuring the camera because the initialization code doesn’t work, then that could be the cause of getting a null pointer when you try to get an image. The initialization code sets up all the procedures for communicating with the camera. If you call the access routines without first initializing, then the access routines may not work correctly.

I don’t think you need to pass the IP address. I setup the IP address of the camera to be 10.xx.yy.11, where xx.yy is your team number. The code found it without a problem. You also need a user named FRC, with a password of FRC (both are upper case). I gave the user Admin privileges.

So I should actually be using the WriteResolution function and the others like it instead of setting the options on the axis camera? I have a user named FRC and I’m pretty sure the password is FRC but I’ll double check.