Go to Post i swear, if it were april fools day, i would not believe this whole lord dumpling/dean kamen thing...but then again, this is FIRST - sure_smile [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 02-12-2008, 20:06
nickmagus's Avatar
nickmagus nickmagus is offline
Registered User
AKA: Nick Clayton
FRC #0008 (Paly Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Palo Alto, Califorinia
Posts: 56
nickmagus is an unknown quantity at this point
Send a message via AIM to nickmagus
inconsistent wireless code downloading

Has anyone else encountered the error that when you download code the code does not change. I usually have to download code 4-5 times before the code actually changes on the cRIO. Does anyone know whats up with that?
  #2   Spotlight this post!  
Unread 02-12-2008, 20:28
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,753
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: inconsistent wireless code downloading

Which environment were you using, and can you describe your test so that we can try to replicate?

Greg McKaskle
  #3   Spotlight this post!  
Unread 02-12-2008, 22:20
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: inconsistent wireless code downloading

Quote:
Originally Posted by nickmagus View Post
Has anyone else encountered the error that when you download code the code does not change. I usually have to download code 4-5 times before the code actually changes on the cRIO. Does anyone know whats up with that?
If you download to the cRIO's flash, you have to reboot it in order for the fresh copy of the code to be run. If you download to RAM, it should run immediately.

(If you are experimenting with both LabVIEW and C++ programs, you might accidentally end up with two different programs running simultaneously, with obvious confusion. Don't do that.)
  #4   Spotlight this post!  
Unread 03-12-2008, 01:36
willson.thomas willson.thomas is offline
Registered User
FRC #1595
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 50
willson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nice
Re: inconsistent wireless code downloading

Quote:
Originally Posted by Alan Anderson View Post

(If you are experimenting with both LabVIEW and C++ programs, you might accidentally end up with two different programs running simultaneously, with obvious confusion. Don't do that.)
I thought you had to change the development environment using the cRIO imaging tool before loading a program from the other development environment. Wouldn't this some how prevent the above from happening? If not, shouldn't it?
__________________
Team Leader
Team 1595
  #5   Spotlight this post!  
Unread 03-12-2008, 09:00
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,753
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: inconsistent wireless code downloading

Quote:
Originally Posted by willson.thomas View Post
I thought you had to change the development environment using the cRIO imaging tool before loading a program from the other development environment. Wouldn't this some how prevent the above from happening? If not, shouldn't it?
Changing the development environment is really only necessary to get the debugging systems fully functional. It is possible to run LV on a C system, C on a LV system, and yes, both at once. After all the LV system is just a C program that is making calls into generated LV code, so the OS doesn't know the difference.

The debugging differences have to do with how exceptions are caught, or something like that. I have never looked at the details. I normally run the tool.

Greg McKaskle
  #6   Spotlight this post!  
Unread 04-12-2008, 20:03
nickmagus's Avatar
nickmagus nickmagus is offline
Registered User
AKA: Nick Clayton
FRC #0008 (Paly Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Palo Alto, Califorinia
Posts: 56
nickmagus is an unknown quantity at this point
Send a message via AIM to nickmagus
Re: inconsistent wireless code downloading

So I did some testing and here is what I found. I'm using windriver and C++. If I use the debug method of running code on the robot through the RAM everything works fine however if I download the code and reboot the robot the two modes (teleop and autonomous) dont change until the robot is not in their mode. I did a really simple test (switching joysticks in teleop) and found that if i reboot the robot in teleoperated mode the joysticks wern't switched but i switched to autonomous and back it worked. the same thing happened with autonomous. any ideas whats up?
  #7   Spotlight this post!  
Unread 05-12-2008, 09:11
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: inconsistent wireless code downloading

Quote:
Originally Posted by nickmagus View Post
...if I download the code and reboot the robot the two modes (teleop and autonomous) dont change until the robot is not in their mode.
I'm sorry, but I have no idea what this means. Can you give a less general description?

Quote:
I did a really simple test (switching joysticks in teleop) and found that if i reboot the robot in teleoperated mode the joysticks wern't switched but i switched to autonomous and back it worked. the same thing happened with autonomous. any ideas whats up?
The term "switch" apparently means more than one thing here, and I can't tell what is intended. Let me rephrase my question. Can you give a more step-by-step description of what you did, what you expected to happen, and what happened instead?
  #8   Spotlight this post!  
Unread 11-12-2008, 17:57
nickmagus's Avatar
nickmagus nickmagus is offline
Registered User
AKA: Nick Clayton
FRC #0008 (Paly Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Palo Alto, Califorinia
Posts: 56
nickmagus is an unknown quantity at this point
Send a message via AIM to nickmagus
Re: inconsistent wireless code downloading

sry i forgot to post that i figured out what was happening. thanks though.
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
Problem downloading code Romeo1351 FIRST Tech Challenge 6 01-12-2006 06:33
Downloading code to 2005 RC Eclipse Control System 2 23-02-2006 19:58
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
Problem downloading any Camera code zuckie13 Programming 4 07-02-2005 20:32
Downloading Code with new Editor gburlison Programming 4 17-01-2003 01:10


All times are GMT -5. The time now is 19:32.

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