Go to Post Give me enough gearboxes and I'll move the world. - SenorZ [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 20-03-2012, 21:57
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 114
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Camera - Error 66 generated by "Camera: Read MJPG"

We're having some issues with our vision code (which runs on the cRIO). Periodically, the "Camera: MJPG Loop" block will start producing error 66. Specifically, the "Camera: Read MJPG" generates the error.

We're not sure what's causing this - but the robot can't seem to recover from it just by waiting. If we stop all running code and redownload, the issue disappears without fail. However, after running vision code for somewhere between 30 seconds - a few minutes, the error will reoccur.

Has anybody seen anything like this before? How can this issue be solved/mitigated?

----------------------

Appendix: LabVIEW "Explain Error" for Error 66
LabVIEW: The network connection was closed by the peer. If you are using the Open VI Reference function on a remote VI Server connection, verify that the machine is allowed access by selecting Tools>>Options>>VI Server on the server side.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-03-2012, 22:14
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: Camera - Error 66 generated by "Camera: Read MJPG"

This was added to FirstForge earlier in the season as a known bug with how the LV camera code's new mjpg function deals with the camera shutting down the stream.

The typical case where I've seen this occur is when the camera is enabled, but then disabled for fifteen seconds or longer. When reenabled, the camera returns an error 66. There could be other causes for it.

In case of the error, the solution is to close the TCP session, and let the session refnum value go to NULL. This will cause the next loop iteration to open a new one and recover.

I posted a VI on CD earlier in the season. Here is the thread. Please let me know if this VI works, as I edited it while traveling and didn't have enough to test with.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 20-03-2012, 22:58
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Camera - Error 66 generated by "Camera: Read MJPG"

Quote:
Originally Posted by Greg McKaskle View Post
I posted a VI on CD earlier in the season. Here is the thread. Please let me know if this VI works, as I edited it while traveling and didn't have enough to test with.
Huh, wish I'd found this a little earlier. We'd been having the same problems and successfully traced it to the camera being disabled for extended periods of time. To fix it, we just always left the camera enabled and called the Camera Wait VI periodically to keep the connection open. We just controlled the processing of the image. It's worked for us....
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	18
Size:	6.9 KB
ID:	12379  
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
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 04:05.

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