Go to Post Why climb up to the scaling rungs when you can move the entire field down to your robot's height? - marcusbernstein [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 08-03-2012, 23:00
pburr pburr is offline
Registered User
FRC #2062
 
Join Date: Mar 2012
Location: Waukesha
Posts: 1
pburr is an unknown quantity at this point
Teleop transition issues, Labview

Team 2062 is having a problem where after hybrid period executes then the first frame of teleop executes but then the code gets hung up and does not continue. We had 2 NI CSA's look at our code and they could not find anything or help us. After the matches we talked to the FTA who said that the robot was communicating throughout the match but the robot received the signal from the FMS to turn to teleop but this did not reflect in our code (see log file attached). We put in some debugging to see where the robot got hung up and the code would work randomly half of the time. We serialized the code to prevent a race condition which the CSA said could be the problem but that did not fix the problem. The diagnostic lights on the jaguars using CAN are solid orange (good signal, neutral speed) and the diagnostic lights on the jaguars using PWM are slow falshing orange (bad PWM signal). We changed our program to send a message to the driver station each iteration of the teleop program and this verified that we go through only one frame of teleop.
Attached Files
File Type: zip CD Post.zip (3.51 MB, 20 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 09-03-2012, 00:13
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: Teleop transition issues, Labview

Whoa, that's a lot of stuff going on in Teleop. I don't see any reason for it to hang, though.

I notice that Robot Main has been modified. That's often a recipe for unexpected weirdness, but it doesn't seem to have anything in it that'll break things. I do wonder why you didn't just put that vision-receiving code in the Periodic Tasks vi, instead of doing clever background startup and shutdown processing.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-03-2012, 06:35
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: Teleop transition issues, Labview

Using the Practice mode on the Driver Station in your pits and turning on Highlight Execution (the little lightbulb) while running the code from LabVIEW you may be able to see what VI may be getting stuck (unfortunately it's possible that the issue won't crop up with highlight execution enabled).

You should also check the Diagnostics tab and NetConsole to make sure no errors are being reported.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-03-2012, 14:35
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: Teleop transition issues, Labview

I saw another team with similar sounding issues, but I just received their code and don't have a cRIO. Their workaround was to end their teleop loop at fourteen seconds.

I hope to get to the bottom of it late next week.

Greg Mckaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 11-03-2012, 15:13
the programmer's Avatar
the programmer the programmer is offline
Registered User
AKA: Erik Orlowski
FRC #2830 (Riverside Robotigers)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2006
Location: Wisconsin
Posts: 32
the programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud of
Re: Teleop transition issues, Labview

Thanks for the help everyone. We ended up rewriting our code and sending the old code off to NI to have it looked at. We never really had a chance to get the old code working at this regional but we'll try to get it working for Wisconsin.
__________________
2006-2008: FLL Student
2009-2014: C.O.R.E. 2062
2010-?: FLL Referee
2015-?: Riverside Robotigers 2830
Reply With Quote
  #6   Spotlight this post!  
Unread 12-03-2012, 08:37
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: Teleop transition issues, Labview

Quote:
Originally Posted by RufflesRidge View Post
Using the Practice mode on the Driver Station in your pits and turning on Highlight Execution (the little lightbulb) while running the code from LabVIEW you may be able to see what VI may be getting stuck (unfortunately it's possible that the issue won't crop up with highlight execution enabled).

You should also check the Diagnostics tab and NetConsole to make sure no errors are being reported.
To follow up with what's been said already...

We tried this, but unfortunately we could only reproduce the problem with built code (as opposed to just deployed). We added user messages to almost every bit of our code, which actually made the problem a little bit better, happening about half the time. When it did happen though, it was inconsistent as to where in the code it happened.

We ended up rewriting our whole teleop and autonomous code on Thursday night before our Qualification matches, and it preformed reasonably well (with a lot of between-matches scrum). By our second match in Qualifications we had gotten it back up to almost where it was.

The whole building issue is key here, as it could most likely be a bug that's been lurking in our codebase for a long time, as we never really tested our build code with a practice match. This lack of testing is something we have noticed and are taking steps to improve.
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote
  #7   Spotlight this post!  
Unread 12-03-2012, 12:45
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,103
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Teleop transition issues, Labview

We had this same problem at our regional, and we traced the problem to our CANJaguar GetStatus. When we had that vi running, the code would freeze running that VI when we would transition between auton and teleop. After we removed this, the code worked again.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
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 03:12.

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