Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   camera returning error when getting instance (http://www.chiefdelphi.com/forums/showthread.php?t=100101)

ProgrammerMatt 13-01-2012 20:59

camera returning error when getting instance
 
I am using

Code:

AxisCamera.get instance("10.2.28.11")


And I'm getting a long error containing error connecting to camera


Patrickwhite 13-01-2012 22:46

Re: camera returning error when getting instance
 
Is that the exact line that you're using? If so, getInstance should be a camelcase single word, and there should be something at the end - further instructions or a semicolon.

Have you run the Axis Camera setup utility? If the camera has been connected to the cRIO, you must use the utility before connecting it to the bridge. Also, it may be a problem if the camera is connected to the bridge via a crossover cable, though I am not sure. I definitely know that a cat5 (Ethernet) cable works.

JewishDan18 13-01-2012 23:02

Re: camera returning error when getting instance
 
I've been using a crossover successfuly. If that is the actual code, I am sure the code is erroring, not the camera, since the code won't be loaded. Could you copy and paste the exact error here?

ProgrammerMatt 14-01-2012 22:43

Re: camera returning error when getting instance
 
Sorry i had to type on a tablet the code i used was

Code:

AxisCamera.getInstance();
And i did not set it up with the utility i just set its ip address to 10.xx.xx.11

Does the utility give it a special username and password for the cRIO to connect to? if so ill have to try using it its kinda weird and hasent worked for me yet.

EDIT:
Ah, i looked in the documentation and i was right.. it does set up a user and pass for the Crio... ok Thanks anyway

RufflesRidge 14-01-2012 22:48

Re: camera returning error when getting instance
 
add the Username and Password combo FRC/FRC

set it up manually, many have reported issues with the tool that were confirmed by Greg McKaskle from NI.

ProgrammerMatt 14-01-2012 23:16

Re: camera returning error when getting instance
 
Quote:

Originally Posted by RufflesRidge (Post 1105768)
add the Username and Password combo FRC/FRC

set it up manually, many have reported issues with the tool that were confirmed by Greg McKaskle from NI.

Alright thanks,

Thundrio 18-01-2012 18:54

Re: camera returning error when getting instance
 
I'm a java programmer trying to get the camera we got last year working, and I am not getting a image. I am using getInstance(XXX);, but I don't have any idea where I put the username/password combo? Is it in the code, and what do I write? Thanks

cgmv123 18-01-2012 22:34

Re: camera returning error when getting instance
 
Quote:

Originally Posted by Thundrio (Post 1108614)
I'm a java programmer trying to get the camera we got last year working, and I am not getting a image. I am using getInstance(XXX);, but I don't have any idea where I put the username/password combo? Is it in the code, and what do I write? Thanks

FRC/FRC should be used by default.


All times are GMT -5. The time now is 22:22.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi