Go to Post GO OUTSIDE, OR SOMETHING. Go do something other than FIRST for a little while - after all, in January, your life is consumed! - Libby K [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 05-02-2009, 22:04
663.keith 663.keith is offline
Registered User
FRC #1493 (Falcons)
Team Role: College Student
 
Join Date: Oct 2004
Rookie Year: 2003
Location: Whitinsville Massachusetts
Posts: 250
663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all
Send a message via AIM to 663.keith
Robot will Run but Not deploy

I know there have been other post about being unable to deploy, and I have read those posts. We have been able to deploy our code as a startup application in the past, but today it seemed to no longer work. When we select "deploy all", it compiles the code on to the robot, just like in previous times, but now when we restart our DS battery status reads "no code" and our robot does nothing. We feel pretty stuck, is there anything that we can do that can verify the code is working; or is there any other procedure we can do to run the code on startup?
__________________
http://www.wcsrobotics.com
team 663
team 1493
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2009, 22:29
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Robot will Run but Not deploy

I imagine that you have already done this since you indicate that previous code deployed okay, but just in case...

Make sure that you wait for a while after the reboot. It will typically take 30 seconds or more for the cRIO to boot and get the code up and running. So if it's not working, the first thing I would try is to wait a couple of minutes after booting to make sure it is not really already deployed.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2009, 15:45
663.keith 663.keith is offline
Registered User
FRC #1493 (Falcons)
Team Role: College Student
 
Join Date: Oct 2004
Rookie Year: 2003
Location: Whitinsville Massachusetts
Posts: 250
663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all
Send a message via AIM to 663.keith
Re: Robot will Run but Not deploy

Quote:
Originally Posted by airnate View Post
I imagine that you have already done this since you indicate that previous code deployed okay, but just in case...

Make sure that you wait for a while after the reboot. It will typically take 30 seconds or more for the cRIO to boot and get the code up and running. So if it's not working, the first thing I would try is to wait a couple of minutes after booting to make sure it is not really already deployed.
we did wait at least 30 seconds for the "no code" to switch to the battery voltage, but probably not much longer than a minute. Would there be any reason for an especially long delay during startup? also would a re-image of the cRIO be any help at all?
__________________
http://www.wcsrobotics.com
team 663
team 1493
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2009, 16:17
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 will Run but Not deploy

Be sure to not only deploy, but to set the code as startup app. You can also choose Run as Startup and it will mark the code, then reboot for you.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2009, 11:19
Hatefulhippo Hatefulhippo is offline
Registered User
FRC #2170
 
Join Date: Feb 2009
Location: Glastonbury CT
Posts: 5
Hatefulhippo is an unknown quantity at this point
Re: Robot will Run but Not deploy

We are having the same problem. How do you set the code as a start up app.?
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2009, 11:27
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Robot will Run but Not deploy

Right click on your build specification and select Set as startup (if it says Unset at startup, you've already set up as startup).

For more details look in the FRC Programming Guide, in the section entitled Creating a Stand-Alone FRC Application on p. 5-5 (p 61 in pdf).
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2009, 12:48
Hatefulhippo Hatefulhippo is offline
Registered User
FRC #2170
 
Join Date: Feb 2009
Location: Glastonbury CT
Posts: 5
Hatefulhippo is an unknown quantity at this point
Re: Robot will Run but Not deploy

We are still having problems... our code deploys but the robot wont run weve tried the set as startup and the run as startup and yet nothing.... im begining to feel hopeless and recently instead of enable we have been getting a Watchdog instead.. does this have to do with anything
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2009, 17:14
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Robot will Run but Not deploy

So are you saying:

1. You have code that operates correctly (e.g. the robot is responsive) when you press the Run button (i.e. you are running interactively with LabVIEW code on your laptop).

2. That you created a build specification using the same code and did a "Build" with it.

3. That you deployed this build specification as a stand-alone executable and after the cRIO boots, the robot is unresponsive?
Reply With Quote
  #9   Spotlight this post!  
Unread 14-02-2009, 17:52
theCoder's Avatar
theCoder theCoder is offline
Registered User
AKA: Larry Mead
FRC #0956
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Corvallis OR
Posts: 17
theCoder is on a distinguished road
Re: Robot will Run but Not deploy

We are having the same problem. Yesterday we updated the cRio and Driver code to the most current versions from FIRST. We are at a scrimmage match and we toggle 4 seconds on "Watchdog" then one second on "Enable". We get this problem when using the scrimmage SSID as well as stand-alone. We have followed the update instructions very carefully, at least 4 or 5 times. No luck. Is anyone else having problems with the new code? Any suggestions would be greatly appreciated.

<< edit >>
We found the problem. Some code that worked with the older firmware caused problems running with the new firmware. One problem we figured out, the other went away when we commented out a large block of code. The first involved the compressor. We were directly controlling the spike, instead of using the compressor object. This code worked fine before, but with the new firmware caused the cRio to die with a "kernel" error. It took the better part of 4 hours to find. Unfortunately the compiler did not catch the problem. The second was buried somewhere in a large block of under-tested autonomous code. Yesterday at the scrimmage was the first time that code was fully exercised. As mentioned above, the controller was between watchdog and enabled. Commenting out a large block of code made the problem go away.

Last edited by theCoder : 15-02-2009 at 12:35. Reason: additiional comments
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run works but build&deploy doesn't program1 NI LabVIEW 3 03-02-2009 22:32
Deploy not working.... Help please? domoarigato Programming 17 24-01-2009 17:13
not quite a robot, but a practice trailer smcmahon Robot Showcase 4 14-01-2009 23:24
Camera will track one light, but not two? Kevin Watson Programming 2 01-02-2007 22:34
Robot controller will not program teh_r4v3 Programming 2 25-01-2007 22:38


All times are GMT -5. The time now is 21:35.

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