Go to Post What can you do? The more time you waste here speculating the less time you have to work on the robot. Go! Build Robots! Now! - Jessica Boucher [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 26-03-2016, 15:56
vala's Avatar
vala vala is offline
Registered User
FRC #0703 (Phoenix)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2015
Location: Saginaw
Posts: 11
vala is an unknown quantity at this point
Dashboard Camera not working

When we are trying to enable the camera nothing shows but we do get fps and data speed.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-03-2016, 17:51
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 458
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Dashboard Camera not working

I vaguely remember having this problem earlier. Did you plug in the USB camera after turning the robot on? In that case, cycle power, and it should appear (make sure your dashboard selector is set to the right camera type). That seemed to work. The camera wouldn't send images unless it was plugged in prior to turning the robot on.

If that isn't it, I would suggest taking a look through the Vision VI. Have you modified that at all?
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #3   Spotlight this post!  
Unread 26-03-2016, 20:20
vala's Avatar
vala vala is offline
Registered User
FRC #0703 (Phoenix)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2015
Location: Saginaw
Posts: 11
vala is an unknown quantity at this point
Re: Dashboard Camera not working

Here is the photos of our code. They are photos of our dashboard code
http://imgur.com/a/ImMMg

Last edited by vala : 26-03-2016 at 20:23.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-03-2016, 20:28
bbsoccergamer's Avatar
bbsoccergamer bbsoccergamer is offline
Registered User
AKA: Lee Knepper
FRC #0703 (Phoenix)
Team Role: Coach
 
Join Date: Jan 2011
Rookie Year: 2001
Location: Saginaw, MI
Posts: 9
bbsoccergamer is an unknown quantity at this point
Send a message via AIM to bbsoccergamer
Re: Dashboard Camera not working

There were no modifications done to Vision.vi. The above code (overlay.vi) was the modification done to dashboard. (same as we did last year though, and had no issues)
Reply With Quote
  #5   Spotlight this post!  
Unread 26-03-2016, 21:53
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,112
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: Dashboard Camera not working

When you ran the FRC Update to bring your Driver Station up to the latest version, did you perhaps fail to reactivate your NI Vision Run-Time installation? You won't get any camera images on the Dashboard until you do that. Run the NI License Manager and find anything with an exclamation point, then right-click on it and choose Activate.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-03-2016, 22:03
bbsoccergamer's Avatar
bbsoccergamer bbsoccergamer is offline
Registered User
AKA: Lee Knepper
FRC #0703 (Phoenix)
Team Role: Coach
 
Join Date: Jan 2011
Rookie Year: 2001
Location: Saginaw, MI
Posts: 9
bbsoccergamer is an unknown quantity at this point
Send a message via AIM to bbsoccergamer
Re: Dashboard Camera not working

We did run the midseason update, and succefully had to re-license vision software in order to run the code for vision.

Last edited by bbsoccergamer : 26-03-2016 at 22:30.
Reply With Quote
  #7   Spotlight this post!  
Unread 28-03-2016, 22:27
bbsoccergamer's Avatar
bbsoccergamer bbsoccergamer is offline
Registered User
AKA: Lee Knepper
FRC #0703 (Phoenix)
Team Role: Coach
 
Join Date: Jan 2011
Rookie Year: 2001
Location: Saginaw, MI
Posts: 9
bbsoccergamer is an unknown quantity at this point
Send a message via AIM to bbsoccergamer
Re: Dashboard Camera not working

Bump. (is this a thing on CD like it is/(was?) on other forums?)

Last edited by bbsoccergamer : 28-03-2016 at 22:35.
Reply With Quote
  #8   Spotlight this post!  
Unread 28-03-2016, 22:37
Jonathan L. Jonathan L. is offline
Registered User
FRC #1094
 
Join Date: Jan 2013
Location: St. Louis MO
Posts: 60
Jonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the rough
Re: Dashboard Camera not working

Have you changed anything at all in the Vision VI in the robot code? There is code there that forwards the USB camera images to the dashboard. It has to be running even with the "USB Camera HW" option.
Reply With Quote
  #9   Spotlight this post!  
Unread 28-03-2016, 23:27
vala's Avatar
vala vala is offline
Registered User
FRC #0703 (Phoenix)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2015
Location: Saginaw
Posts: 11
vala is an unknown quantity at this point
Re: Dashboard Camera not working

We have not changed anything with the vision code. All that we changed is on that link above.
Reply With Quote
  #10   Spotlight this post!  
Unread 29-03-2016, 09:20
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,748
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: Dashboard Camera not working

A bump is not nearly as well received as more info to help with debugging.

I'll list off some things to explain what I'd if I were in your pit at the next event.

Boot the robot and connect to the DS computer using the USB cable. Launch the DS and DB. On the DB choose USB HW. Make sure the DS has comms with the robot.

I'd expect the camera indicator on the DB to turn green and the usage numbers to be fluctuating. I'd expect some LED on the camera to light up and probably stay on.

If you don't have a display, but seem to have data coming from the robot to the computer, I'd check the license on that laptop by going to the NI License manager and looking at both the Vision Acquisition and Vision Development Modules. Open the twists and click on each element under these. If any say that they are not activated or need something, I'd focus on that. If you have difficulties getting the license activated, feel free to call the support number during their hours.

I might also open the diagram of the DB, go to the vision loop, and dig into the code a bit. The code within WPILib doesn't always have lots of comments, and it doesn't always have debugging turned on. So again, this may be better to do while on the phone with support.

By the way, it may also be useful to connect your camera directly to your laptop and verify that the camera still works. Robots sometimes snack on cords, connectors sometimes get broken, etc.


Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 29-03-2016, 12:32
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #0703 (Phoenix)
Team Role: Leadership
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 927
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: Dashboard Camera not working

Quote:
Originally Posted by Greg McKaskle View Post
By the way, it may also be useful to connect your camera directly to your laptop and verify that the camera still works. Robots sometimes snack on cords, connectors sometimes get broken, etc.
Though I'm not on the programming team, I can verify that we did do this, and the camera does work (we've actually tried two different cameras, both work on the computer, neither work on the robot).

What's interesting is we actually pulled out a brand new RoboRio and hooked it up by itself to a practice bot (only connected the PDP and a radio though, no motor controllers or sensors), loaded the same code we have on our robot, and the camera worked fine. As soon as we took that same RoboRio and hooked it up to our competition robot however, the camera no longer worked (not even getting any LEDs on the camera to light up).

It's also my understanding that they are getting some data from the camera through the dashboard (usage, framerate, etc.) but no image.
Reply With Quote
  #12   Spotlight this post!  
Unread 29-03-2016, 14:25
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,748
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: Dashboard Camera not working

Many of the USB cameras seem to turn off their LED and take a nap if nothing opens a session to them. I don't know this behavior well enough to use it as a general debugging diagnostic, but you may be able to compare the LED behavior between the working system and the nonworking system.

For example, if the LED immediately lights up on the working roboRIO and never lights up on the competition robot, there may be a power issue, and it may make sense to ensure that the USB host port still works. If the LEDs turn on, but go off after awhile when no code is running, and that matches the competition bot, that may tell you that the code isn't keeping a session open, and time to break out the debugger.

Also, the roboRIO web page will show you how USB devices are connected, so it should show up on the left list. And Vision Assistant will let you test and configure the USB camera plugged into a roboRIO. When you launch it, choose to acquire images, double click the second camera type which includes USB and IP, then on Target, type in the name or IP of the roboRIO. The list beneath should show the UVC/USB camera, and you can select it and click the play triangle to start getting images from it.

Greg McKaskle
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:51.

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