Go to Post Profesional Gracism - n. the blessing said before Robotics competitions begin. - Cynette [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 11-02-2014, 10:27
eren96's Avatar
eren96 eren96 is offline
Registered User
FRC #3646 (Integra)
 
Join Date: Oct 2013
Rookie Year: 2011
Location: Türkiye
Posts: 22
eren96 is just really niceeren96 is just really niceeren96 is just really niceeren96 is just really niceeren96 is just really nice
AXIS M1013 how to get image on dashboard?

Hi,

We have AXIS M1013 camera and have been trying to get image on dashboard for a few days. We configured our camera and set the camera ip adress to 10.36.46.11. Our cRIO has 8 slots and 2 ethernet ports, but we preferred to use robot radio to connect the camera.

When we tried to run the "Camera Performance" example vi, the camera display on the front panel successfuly runs our camera and we get image on the front panel. I looked over the block diagram of this example code and noticed that there aren't any places to write the camera ip adress (10.36.46.11), but instead there is a block called build ip adress on the left. My first question is that how this example code knows my camera IP?

Secondly, I do not know much about how to integrate this code to my robot code and to get an image on dashboard. I tried the code in the attached image in begin vi but it didn't work. What did I miss and how can I run the camera ?

http://imgur.com/zyZ1elQ

Any help would be appreciated. Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2014, 11:09
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: AXIS M1013 how to get image on dashboard?

If your camera Ethernet is wired to the D-Link router, then the cRIO code is not relevant. The Dashboard program connects to the Axis camera directly.

How did you configure the camera? If you used the configuration utility, you shouldn't have needed to specify the IP address explicitly. It would have used your team number to determine the correct address. If you didn't use the utility, the camera might not have the FRC/FRC user defined.

Did you turn on the "enable camera" control on the Dashboard? It's the small toggle button to the right of the bottom of the image panel.

I seem to remember something about having to activate the LabVIEW vision support before the image will appear. Run the LabVIEW License Manager program and see if anything shows up as not activated.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2014, 14:04
eren96's Avatar
eren96 eren96 is offline
Registered User
FRC #3646 (Integra)
 
Join Date: Oct 2013
Rookie Year: 2011
Location: Türkiye
Posts: 22
eren96 is just really niceeren96 is just really niceeren96 is just really niceeren96 is just really niceeren96 is just really nice
Re: AXIS M1013 how to get image on dashboard?

Thanks for your reply.

Quote:
Originally Posted by Alan Anderson View Post
I seem to remember something about having to activate the LabVIEW vision support before the image will appear. Run the LabVIEW License Manager program and see if anything shows up as not activated.
I checked this and there is nothing shows up as not activated.

Quote:
Originally Posted by Alan Anderson View Post
Did you turn on the "enable camera" control on the Dashboard? It's the small toggle button to the right of the bottom of the image panel.
Yes, I always check this.

Quote:
Originally Posted by Alan Anderson View Post
How did you configure the camera? If you used the configuration utility, you shouldn't have needed to specify the IP address explicitly. It would have used your team number to determine the correct address. If you didn't use the utility, the camera might not have the FRC/FRC user defined.
We didn't use FRC Bridge Configuration Utility. We used Setup Axis Camera utility. As I said above, we can get image from the camera by Camera Performance VI. Doesn't this mean configuration is successful and the Labview can reach the camera? I do not have further information about this IP changings, but I realized that when i connect the camera to the computer and changed the IP adress to 192.168.0.5, I cannot connect the camera on my web browser. I looked at 10.36.46.11 (which I expect to find) and 192.168.0.90, but both do not include my camera. I started the setup axis camera utility again and saw that the camera found light wasn't green. I think this is sth good because I configured my camera and as far as i know, once my camera is configured, the ip adress is changed to 10.36.46.11.

What else can I try?
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2014, 20:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: AXIS M1013 how to get image on dashboard?

If the example works with the camera, that would imply that the camera IP is correct.

You asked how the BuildCamerIP VI works. If you double click, you can open it and see its secrets. If a string is passed into the VI, that is used. Otherwise, it runs the StringToIP function with an empty string. With that usage, it returns the robot IP. It then masks the lower byte and ORs in an 11. The final step is to format the integer into a string with decimal format.

One other thing I'd check with the dashboard is to make sure that you run the driver station. It is the driver station that tells the dashboard which robot is being used. The dashboard then starts the connection to the camera at 10.te.am.11.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2014, 14:15
eren96's Avatar
eren96 eren96 is offline
Registered User
FRC #3646 (Integra)
 
Join Date: Oct 2013
Rookie Year: 2011
Location: Türkiye
Posts: 22
eren96 is just really niceeren96 is just really niceeren96 is just really niceeren96 is just really niceeren96 is just really nice
Re: AXIS M1013 how to get image on dashboard?

Quote:
Originally Posted by Greg McKaskle View Post
If the example works with the camera, that would imply that the camera IP is correct.

You asked how the BuildCamerIP VI works. If you double click, you can open it and see its secrets. If a string is passed into the VI, that is used. Otherwise, it runs the StringToIP function with an empty string. With that usage, it returns the robot IP. It then masks the lower byte and ORs in an 11. The final step is to format the integer into a string with decimal format.

One other thing I'd check with the dashboard is to make sure that you run the driver station. It is the driver station that tells the dashboard which robot is being used. The dashboard then starts the connection to the camera at 10.te.am.11.

Greg McKaskle
Driver station and the toggle button is on. I still can't get image, it's annoying.

Let me rephrase what I've done.

I've tried many things but couldn't accomplish what I want to. Our robot is done, all the other codes for motors, sensors and pneumatics are ready, we can control all of them with joysticks via robot radio.

However when it comes to the camera, we couldn't get image on dashboard. Our camera actually works. We successfully configured it and wired to robot radio and 5V output on PDB. When we run the "Camera Performance.VI" it runs and we can get live image on the front panel successfully.

However, when we run our robot main code, open the driver station, dashboard, enable and press the toggle button on the dashboard to run the camera, nothing is changing and we can't see live image on the left. As far as I learnt above, I don't need to change any code in my robot project to run camera, because I connect the camera via robot radio.

Last year, our programmer couldn't run the camera, neither. ( http://www.chiefdelphi.com/forums/sh...d.php?t=113049 ) His problem was different, but after that we ordered new camera this year(1013), but still have problems with running camera. As a team, we really wonder why we can't make it for 2 years.

Btw, we tried doing whole process in a different computer, too, but the result is the same: no image...

These are what I did and what I know. It seems like I miss something, but couldn't find it. What am I doing wrong or what am i missing?
Thanks from now.
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 20:59.

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