Go to Post Hey Baker - get a haircut! :) - Sean Schuff [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 17-02-2014, 18:34
SamJr. SamJr. is offline
junior programmer
AKA: Rebecca
FRC #0931 (Perpetual Chaos)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Missouri
Posts: 2
SamJr. is an unknown quantity at this point
Robot not Listening to Code (LabView)

Ok, so, yesterday, everything was working. Even Autonomous, more or less. This morning, we came back in to work, and the robot was simply unresponsive. Eventually, we succeeded in connecting, but the code seemed to be completely ignored. All throughout the day, we tried everything we could think of, including switching out the C-RIO. Symptoms include: flashing Talon lights, brief spurts of activity in the drive train before a return to silence (without any input from us), and random motion in other motors. Probing all of the lines in the code proved that there were no errors. Replacement of the C-RIO, most of the PWMs, and old code that we know works had little to no effect. We've never seen anything like this before. Any help, soon, would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2014, 18:43
ehochstein's Avatar
ehochstein ehochstein is offline
Coach, Volunteer & Mentor
AKA: Evan Hochstein
FTC #5943 (ESGM)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Bloomington, Minnesota
Posts: 933
ehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant future
Re: Robot not Listening to Code (LabView)

Ensure the cable going from the crio to the digital sidecar is fully plugged in. Are you seeing all of the lights on the digital sidecar turn on?

Also just to confirm, you can connect to your robot from the driver station right now?
__________________
Minnesota FIRST Senior Mentor | 2013-?

Stratasys Applications Engineering Technician | 2016-?

2009 Regional Win – 2470 @ 10k Lakes (Thanks 2826 and 1714)
2013 WFFA Recipient – 2470 @ 10K Lakes
2016 Ri3D: 'Snow Problem Reveal
2017 Ri3D: 'Snow Problem Reveal

The opinions expressed above are the personal opinions of the author and do not necessarily represent the views and opinions of any organization the author is affiliated with.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2014, 18:51
SamJr. SamJr. is offline
junior programmer
AKA: Rebecca
FRC #0931 (Perpetual Chaos)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Missouri
Posts: 2
SamJr. is an unknown quantity at this point
Re: Robot not Listening to Code (LabView)

The answer to all of you questions is yes. We have replaced ALL of the vital electronics. The driver station and everything works completely OK. There is no hints as to what the problem would be, tethered or wireless, computer or classmate, anything we try produces the same result.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2014, 19:38
MathMaven MathMaven is offline
Registered User
AKA: Elisha Sword
FRC #3175 (Knight Vision)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Michigan
Posts: 50
MathMaven is on a distinguished road
Re: Robot not Listening to Code (LabView)

Have you tried replacing your battery? It sounds like you've got an unusably low voltage, and you haven't said anything about your battery.

Alternatively, try making sure each cRIO module is in its proper place -- this will mess everything up.
__________________
—Elisha Sword

2010–13: FRC Team 3175 (Knight Vision), student, lead programmer
2012–13: FRC Team 3175 (Knight Vision), lead website designer
2014: FRC Team 3175 (Knight Vision), programming mentor

“Who has not been amazed to learn that the function y = e^x, like a phoenix rising from its own ashes, is its own derivative?”
—Francois le Lionnais
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2014, 20:33
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: Robot not Listening to Code (LabView)

There is still a lot that you haven't said.

Were you running from a deployed and built app, or were you running from the run button? If you are running from code, you should be able to set breakpoints, probe, and determine if the code that is running is involved in the symptoms or if it is largely electrical issues.

You can also place the DS into test mode where your periodic code is still running, but neither auto or tele is called. You can click through the dashboard table and view if sensors are working and even drive the motors.

You also have lots of info on the charts tab. It tells you the robot battery voltage, the CPU usage. It tells you the errors coming front the code and it tells you when your robot is processing an auto or tele packet.

You may want to post some of these elements to aid in debugging things.

Greg McKskle
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2014, 23:27
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Robot not Listening to Code (LabView)

Quote:
...brief spurts of activity in the drive train before a return to silence ...
Do you get any repeating errors in your Diagnostics tab? Do you have any vision code running on your cRio?

This sounds like the lag our team gets sometimes. Check your DS Charts tab and look at the CPU usage of your cRio and the packets being lost. A lot of times, we get "brief spurts" whenever our CPU is pegged at 100%, which can be caused by anything from vision code to error messages.
__________________
Per Audacia Ad Astra

Last edited by Invictus3593 : 17-02-2014 at 23:30.
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2014, 14:59
Elfonzo's Avatar
Elfonzo Elfonzo is offline
Registered User
AKA: Ethan
FRC #0931 (Perpetual Chaos!)
Team Role: Programmer
 
Join Date: Sep 2013
Rookie Year: 2011
Location: Saint Louis
Posts: 6
Elfonzo is an unknown quantity at this point
Talking Re: Robot not Listening to Code (LabView)

We aren't sure of the actual problem, but we did try a different computer and the code worked. We plan to re-install LabView on our original computer to see if things improve there for the next season. Thank you all for your input.
-the other 931 programmer
Reply With Quote
  #8   Spotlight this post!  
Unread 23-02-2014, 21:44
killer_rabbit3's Avatar
killer_rabbit3 killer_rabbit3 is offline
programming rabbit
AKA: Alexander Martinez
FRC #1038 (Lakota Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: liberty township OH
Posts: 13
killer_rabbit3 is an unknown quantity at this point
Re: Robot not Listening to Code (LabView)

We've had this happen to us before. our biggest two culprits were either low battery, or the cRIO CPU is slamming 100% use. both were pretty easy to deal with. see if the cRIO is being overloaded
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 21:00.

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