Go to Post You just have to care enough to give it a try. Your mentors will appreciate the effort. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2009, 21:49
bomber7 bomber7 is offline
Humanoid
FRC #0585
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: CA - Tehachapi
Posts: 20
bomber7 is an unknown quantity at this point
cRIO Program Delay

I couldn't find it, but a thread probably already exists about this problem.

The cRIO works great, our code works, however even with default program code the cRIO seems to follow this time table. (Approximitly)

000s cRIO turned on.
040s Labview dashboard begins receiving data. (As well as Driver station)
080s User-created code begins to run.

I am using the windriver development enviroment.

If I'm not mistaken an 80 second delay between the turn on of a robot and the start of its usefulness will prove too long for the way we normally do competitions. It also makes testing a real pain.

Is this problem widespread or are we just having some kind of funny bug? (Its not just our code, we've loaded several different templates/samples provided with windriver)
  #2   Spotlight this post!  
Unread 28-01-2009, 22:40
7-11number1 7-11number1 is offline
ROAR.
FRC #1711 (RAPTORS)
 
Join Date: Sep 2007
Rookie Year: 2006
Location: Traverse City, Michigan
Posts: 46
7-11number1 will become famous soon enough
Re: cRIO Program Delay

This suggests you are performing a download/reboot/test cycle. You do not have to cycle in this manner. As long as your primary FRC_RobotTask and any other tasks you may spawn are deletable, you can configure WindRiver Run to download you modifications and launch immediately. We have our compile/download/test cycle down to about 7 seconds on a Core 2 Duo laptop (longer for the more ancient beasts). If FRC_RobotTask pre-exists, then your code will display a console message saying so and fail to spawn the new modified program.

What we do is assign a key on our joystick that when pressed, stops all sub-tasks, delete's them and free's any other wandering (but relevant) resources finally performing an exit(0);. This completely washes out all essence of the previous program. This takes less than a second to perform. We are saving and changing our modifications on the laptop then have configured the 'Run As' entry to download and launch the code. On actioning the 'Run' icon on the toolbar, the code is downloaded and executed. About 7 seconds all-in, though the number of source compilations will extend the number.

Hope this helps!

Tony,
1711 Raptors

Last edited by 7-11number1 : 28-01-2009 at 22:44.
  #3   Spotlight this post!  
Unread 29-01-2009, 21:35
bomber7 bomber7 is offline
Humanoid
FRC #0585
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: CA - Tehachapi
Posts: 20
bomber7 is an unknown quantity at this point
Re: cRIO Program Delay

Wait, let me get this straight.

Your ending the program on the cRIO? I guess this makes sence, but how are you restarting it (the task) from the remote computer?

It would help quite a bit if we could do something like that.

There's nothing under "Run As" in the pulldown menu in windriver.
As for run, it only runs the program on the local computer, not on the cRIO.

Last edited by bomber7 : 29-01-2009 at 21:37.
Closed Thread


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
cRIO Not Running Program railerobotics NI LabVIEW 5 18-01-2009 08:48
it seems there is no program in crio after downloading mahmosh C/C++ 12 12-01-2009 18:53
cRIO wont save program Arcre NI LabVIEW 5 07-01-2009 11:45
Problems undeploying a program from the cRIO ellisk Programming 2 29-12-2008 16:21
Delay in the segment of the program Lessa Programming 1 10-02-2006 02:06


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

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