Go to Post Do what you do well and I'm sure there will be much hope in your future! - Collmandoman [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 15-02-2013, 22:26
jibicax jibicax is offline
Registered User
AKA: Adina Paddy
FRC #3680 (Elemental Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2011
Location: NorthCarolina
Posts: 8
jibicax is an unknown quantity at this point
Help 2013 Robot won't run

I’m having trouble with either my cRIO, LabVIEW 2013 , or the Driver Station 2013. The problem is that Robot Main.vi will run, but when I press Enable on the Driver Station NOTHING (except the Compressor and the Camera) works. The Jaguars even turn solid yellow, which means their getting some kind of code, but I get no response out of the robot Teleop and Automous. I know my code works, I’ve been making testing vi outside of Robot Main that works fine. AND the old 2012 Robot Main runs and enables fine as well. What is going on? Is this a bug in LabVIEW 2013? If so how do I fix it.

Error codes I usually get (the joystick was plugged in the entire time).

Warning <Code> 44002 occurred at Ping Results: link-bad, DS radio(.4)-bad, robot radio(.1)-GOOD, cRIO(.2)-GOOD, FMS-bad Driver Station
<time>2/15/2013 5:10:20 PM<unique#>5
FRC: Driver Station ping status has changed.
Warning <Code> 44003 occurred at Driver Station
<time>2/15/2013 5:08:39 PM<unique#>4
FRC: No robot code is currently running.
ERROR <Code> -44009 occurred at Driver Station
<time>2/15/2013 5:08:39 PM<unique#>3
FRC: A joystick was disconnected while the robot was enabled.
WARNING <Code> 44007 occurred at FRC_NetworkCommunications <secondsSinceReboot> 1265.594
Warning <Code> 44001 occurred at No Change to Network Configuration: "Local Area Connection""Wireless Network Connection"
FRC: Time since robot boot.

Driver Station
<time>2/15/2013 5:08:39 PM<unique#>2

Warning <Code> 44006 occurred at Driver Station
<time>2/15/2013 5:08:38 PM<unique#>1
FRC: Custom I/O is not enabled or is not connected to the driver station.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2013, 22:36
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Help 2013 Robot won't run

Could you post your Teleop.vi? It would help to diagnose the problem if we could see some of your code. (Posting Robot Main.vi wouldn't be a bad idea either.)
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2013, 23:04
jibicax jibicax is offline
Registered User
AKA: Adina Paddy
FRC #3680 (Elemental Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2011
Location: NorthCarolina
Posts: 8
jibicax is an unknown quantity at this point
Re: Help 2013 Robot won't run

Here's the Teleop. Please pay no attention to the name of the attachment (I figured that out.)
Attached Thumbnails
Click image for larger version

Name:	WhatAreTheseSDBoxes.JPG
Views:	116
Size:	90.8 KB
ID:	14029  
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2013, 23:11
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Help 2013 Robot won't run

Quote:
Originally Posted by jibicax View Post
Here's the Teleop. Please pay no attention to the name of the attachment (I figured that out.)
Well, I don't really see anything wrong, but you should consider wiring up the Error In and Error Out terminals on the Drive Get and Arcade Drive VI's. Doing that will let you probe the wire for any errors the code might have found with your drivetrain.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2013, 00:43
josneville's Avatar
josneville josneville is offline
The Chosen One
FRC #0540 (Talon 540)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: GHS Talon 540 Team
Posts: 15
josneville is on a distinguished road
Red face Re: Help 2013 Robot won't run

This happened to our robot as well. There are many solutions to this:

1. Reboot CRIO
2. Put safety config VIs for your motor controllers
3. Make sure that your router is configured properly


If none of these work, it usually means that you have a corrupt CRIO. Just reformat it with the correct settings and you should be fine.
__________________
-Success is the Key to Life. I have no life. Hmmm......
Reply With Quote
  #6   Spotlight this post!  
Unread 16-02-2013, 02:31
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: Help 2013 Robot won't run

Quote:
Originally Posted by jibicax View Post
FRC: No robot code is currently running.
That's probably a clue. Is Robot Main still running when this happens? Does the Driver Station still have a green light for robot code?
Reply With Quote
  #7   Spotlight this post!  
Unread 16-02-2013, 08:04
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: Help 2013 Robot won't run

Actually, I don't believe in the corrupt cRIO scapegoat.

The No Code is running log is timestamped, and unless we know the timing of other things, it could be misleading. As Alan asked, is the Robot Code light currently on? Since the compressor is running, I assume it is.

I'd take advantage of the debugger. Open up Teleop and see that it is being called. The DS could be in auto, or test mode. If teleop is being called, what are the joysticks returning, what values are being sent to the motors? If you right-click on a wire, you can show a probe on a wire or set a breakpoint.

Probing into the code that is actually running is key to understanding why it isn't doing what you want.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2013, 16:14
jibicax jibicax is offline
Registered User
AKA: Adina Paddy
FRC #3680 (Elemental Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2011
Location: NorthCarolina
Posts: 8
jibicax is an unknown quantity at this point
Re: Help 2013 Robot won't run

Here is the Robot Main.

Yes I did check if the Robot was in the proper mode and I checked all the modes. I even made multiple new projects just in case that project was corrupt. But I'm just getting the same result. Probing the wires didn't show anything unusual, highlight execution didn't show anything wrong, and Single Stepping is WAY to much windows.
Attached Thumbnails
Click image for larger version

Name:	RobotMain2013.JPG
Views:	33
Size:	126.4 KB
ID:	14048  

Last edited by jibicax : 16-02-2013 at 16:23.
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2013, 16:27
jibicax jibicax is offline
Registered User
AKA: Adina Paddy
FRC #3680 (Elemental Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2011
Location: NorthCarolina
Posts: 8
jibicax is an unknown quantity at this point
Re: Help 2013 Robot won't run

I disabled all the safety configurations on the motors. No luck.
Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2013, 17:36
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: Help 2013 Robot won't run

What did you see when you probed the wires? Were the output values close to zero? Do you have errors on the Diagnostics tab?

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 16-02-2013, 18:38
jibicax jibicax is offline
Registered User
AKA: Adina Paddy
FRC #3680 (Elemental Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2011
Location: NorthCarolina
Posts: 8
jibicax is an unknown quantity at this point
Re: Help 2013 Robot won't run

Okay, i guess I did the probes wrong because all I get when I probe a wire in another window that tells me what the wire does/is doing. What do you mean by output?
Reply With Quote
  #12   Spotlight this post!  
Unread 16-02-2013, 18:38
jibicax jibicax is offline
Registered User
AKA: Adina Paddy
FRC #3680 (Elemental Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2011
Location: NorthCarolina
Posts: 8
jibicax is an unknown quantity at this point
Re: Help 2013 Robot won't run

The errors I get is the same errors in my first post.
Reply With Quote
  #13   Spotlight this post!  
Unread 17-02-2013, 07:44
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: Help 2013 Robot won't run

LabVIEW uses the term probe, but it could be called a watchpoint or a variable viewer, etc. If you probe a wire and data goes down the wire, that small window lets you see what value your code produced.

So if you probe the wire going into the RobotDrive, it will show you whether it is running at all, and whether the value being sent makes sense and is what you intended.

If the value going into RobotDrive makes sense, then you should verify that PWM channels and wiring and other things make sense. If it never runs or the value is always zero, you debug in the other direction to the driver station or to upstream elements.

So, by probing wires in teleop, what can you deduce?

Greg McKaskle
Reply With Quote
  #14   Spotlight this post!  
Unread 17-02-2013, 18:29
jibicax jibicax is offline
Registered User
AKA: Adina Paddy
FRC #3680 (Elemental Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2011
Location: NorthCarolina
Posts: 8
jibicax is an unknown quantity at this point
Re: Help 2013 Robot won't run

I guess I was doing something complete different with the probes before. I checked the code to get the numbers you wanted but and all the probes say Not Executed in begin.vi, Teleop.vi, Auto.vi, and RobotMain.vi. But the code is enabled on the DS.
Reply With Quote
  #15   Spotlight this post!  
Unread 17-02-2013, 18:49
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: Help 2013 Robot won't run

Did you run the code using the run arrow? If you are running a deployed or startup application, the debugger isn't attached. If it is, you should put in the probes and then run in order to verify that Begin does run and determine if where it is running.

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 22:58.

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