|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
||||
|
||||
|
Re: AXIS M1013 how to get image on dashboard?
Thanks for your reply.
Quote:
Quote:
Quote:
What else can I try? |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
Re: AXIS M1013 how to get image on dashboard?
Quote:
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|