Go to Post This forum is a really great tool to get people connected to the rest of FIRST communities, as well as a great place to learn from other people and share a little part of yourself. - Ken Leung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2012, 20:59
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
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
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2012, 22:46
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
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.
__________________
while(!going.isTough());
tough.exit();

What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2012, 23:02
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2012, 22:43
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
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

Last edited by ProgrammerMatt : 14-01-2012 at 22:46. Reason: Edit
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2012, 22:48
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 14-01-2012, 23:16
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: camera returning error when getting instance

Quote:
Originally Posted by RufflesRidge View Post
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,
Reply With Quote
  #7   Spotlight this post!  
Unread 18-01-2012, 18:54
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
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
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2012, 22:34
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,073
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: camera returning error when getting instance

Quote:
Originally Posted by Thundrio View Post
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.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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