I set up my Access Point with no problem connecting to the RoboRio through the access point. Then I set up my axis camera using the axis camera utility in LabView untilites and it said successful. In the Vision.vi I set it to False to use an IP camera and I deployed and ran the roborio code. I put a probe between the set Camera size and the set FPS I got the error listed below. And I wasn't getting a camera image. Any thoughts on why I was getting the error?
PS I found the camera at 10.xx.yy.21, the dev PC at .20 and the router at .1
Error -44003 occurred at WPI_CameraIssue HTTP Request with Authentication.vi>>WPI_CameraIssue Get.vi>>WPI_CameraSet Image Appearance Property.vi>>WPI_CameraSet Image Size.vi>>Vision Processing.vi>>Robot Main.vi
<time>Wed 07 Jan 2015 09:43:49 PM CST<unique#>97
This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.
Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (-44003) or for its hexadecimal representation (0xFFFF541D).
I figured out the porblem. it's the camera IP address of "axis-camera.local", in the Vision.vi I kept probing wires down until I found the right error which said
Error 54 occurred at TCP Open Connection ..
LabVIEW: The network address is ill-formed. Make sure the address is in a valid format. For TCP/IP, the address can be either a machine name or an IP address in the form xxx.xxx.xxx.xxx. If this error occurs when specifying a machine name, make sure the machine name is valid. Try to ping the machine name. Check that you have a DNS server properly configured. If you are using the TCP Open Connection function, ensure that the value of the remote port or service name is not 0.
I found the camera addres in VIsion.vi and I hard coded the 10.99.99.21.I know with DHCP, this will change but it's what I had to do to get it to work.
QUESTION: why doesn't "axis-camera.local" work as the IP address from the roboRio to access the IP camera?
I am looking into why the DNS name that is porgrammed in LabVIEW does not work. In the mean time, you can follow the FIRST axis setup instructions to set a static IP address for your camera. These instructions are found here:
You can then hardcode this static IP address into the LabVIEW Vision VI as you have been doing. You may also want to look at this thread on the forum where other people are discussing the setup of Axis cameras:
Actually, I found the Axis Camera setup isn't setting up the host name (you've seen it on thread 26746). Once the host name was set up, it all works. So what's up with the Axis camera set up?
I was able to change the host name for the Axis camera to axis-camera. And when the roboRIO is on the same network as the Axis camera, I can reference it using "axis-camera" insetad of an IP address. However I can not get it to work using "axis-camera.local" insetad of the IP address. Were there any other settings you changed for the camera?
EDIT: I was protoyping everything while connected to a network that prevented the .local suffix from working. This shouldn't ever be a problem when working on the control paltform network. But the DNS name of the camera does need to be changed as our users have pointed out.