Go to Post 20,000 students 900 teams robots Gracious professionalism = FIRST - Bcahn836 [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
  #16   Spotlight this post!  
Unread 25-02-2009, 13:49
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming Error

If the Run button doesn't stay black, then it might have run through a single pass then stopped.
In any case that's certainly why your joysticks don't respond. The program isn't running.

Try pushed the run continous button instead. It should look something like this while it's running:
Attached Images
 
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-02-2009 at 14:24.
  #17   Spotlight this post!  
Unread 25-02-2009, 15:24
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming Error

You have a While loop that should normally, by default, keep you running when the Run button is pushed.

The default for such a loop is "Stop if True" (looks like the left picture below).
Did you by any chance change it to a "Continue if True" (the middle picture)?

Either type can be used, but you have to be careful to have the correct default value going in. In one case it should default to True, while in the other it should default to False. That's a common reason for the program to run only once (taking only milliseconds to complete). People sometimes change the loop type, but forget to reverse the default True/False. In the middle case below, the loop will run only once (very fast) because the button feeding it would have to be held down to make it loop.

For instance, the third picture is what the Basic Framework uses and it keeps the loop going because it defaults to True and uses "Continue if True."
Attached Thumbnails
Click image for larger version

Name:	StopIfTrue2.jpg
Views:	24
Size:	2.0 KB
ID:	7563  Click image for larger version

Name:	ContinueIfTrue.jpg
Views:	18
Size:	1.9 KB
ID:	7564  Click image for larger version

Name:	ContinueIfTrue2.jpg
Views:	21
Size:	2.8 KB
ID:	7565  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-02-2009 at 15:43.
  #18   Spotlight this post!  
Unread 25-02-2009, 15:43
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Programming Error

We have no idea why but it seems to be working now. We are deeply mystified by the complexity of this black box.

A special thanks because except for a constant change the code worked the first time out, including the autonomous. When we get back from Traverse City I will email to talk about a switch box on the robot for autonomous.

We did have to replace both the spike relay's as pop riviting them is not good for them.

Thanks so very much.
We would have never gotten it without you.
I hope your root canal went fine.
What events are you going too?
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
  #19   Spotlight this post!  
Unread 25-02-2009, 15:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming Error

It's easiest to take a black box one small piece at a time as you are doing.
Understanding then has a chance to grow.

Practice making the download of your code permanent before you get there tomorrow.

My root canal went quickly. When you need to have root canal it's a relief to get it. I was in quite a bit of pain this past week. I feel great ever since they gave me novocaine. It's wearing off, but all the pain is gone.
One of my teeth got damaged when I unwisely had a wisdom tooth removed, but now they fixed it.

We'll be at NYC, then SBPLI, and finally Championships.
It's hard to raise all the money necessary, but well worth it

Good luck at Traverse City!
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #20   Spotlight this post!  
Unread 25-02-2009, 16:31
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Programming Error

Quote:
Originally Posted by chinckley View Post
Help, We are getting the following error when attempting to run our code (which was made in Labview).

We have update it with version 3

It says on our DS 2009-10a3
I've seen this, or a very similar, error message when working with one of the former teams I used to mentor. They had removed all of their modules from the cRio and then replaced them in random locations. (They thought the slots were all on a bus and didn't realize the FPGA was coded for specific modules in specific slots.) Could this be happening here?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #21   Spotlight this post!  
Unread 25-02-2009, 20:02
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Programming Error

Quote:
Originally Posted by billbo911 View Post
I've seen this, or a very similar, error message when working with one of the former teams I used to mentor. They had removed all of their modules from the cRio and then replaced them in random locations. (They thought the slots were all on a bus and didn't realize the FPGA was coded for specific modules in specific slots.) Could this be happening here?
Not sure, which ones go in which slots?
I only really know programming and this year not even that.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
  #22   Spotlight this post!  
Unread 25-02-2009, 20:04
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Programming Error

Quote:
Originally Posted by Mark McLeod View Post
It's easiest to take a black box one small piece at a time as you are doing.
Understanding then has a chance to grow.

Practice making the download of your code permanent before you get there tomorrow.

My root canal went quickly. When you need to have root canal it's a relief to get it. I was in quite a bit of pain this past week. I feel great ever since they gave me novocaine. It's wearing off, but all the pain is gone.
One of my teeth got damaged when I unwisely had a wisdom tooth removed, but now they fixed it.

We'll be at NYC, then SBPLI, and finally Championships.
It's hard to raise all the money necessary, but well worth it

Good luck at Traverse City!

We have a huge file of notes, I am going over it now.
I will practice that in the morning. We are lucky that there are
several teams going to TC that are usually real good.

Glad you feel better.

I am still nervous we will get there and things will go haywire.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
  #23   Spotlight this post!  
Unread 25-02-2009, 20:06
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Programming Error

Quote:
Originally Posted by Mark McLeod View Post
You have a While loop that should normally, by default, keep you running when the Run button is pushed.

The default for such a loop is "Stop if True" (looks like the left picture below).
Did you by any chance change it to a "Continue if True" (the middle picture)?

Either type can be used, but you have to be careful to have the correct default value going in. In one case it should default to True, while in the other it should default to False. That's a common reason for the program to run only once (taking only milliseconds to complete). People sometimes change the loop type, but forget to reverse the default True/False. In the middle case below, the loop will run only once (very fast) because the button feeding it would have to be held down to make it loop.

For instance, the third picture is what the Basic Framework uses and it keeps the loop going because it defaults to True and uses "Continue if True."
I don't think so.

Good thing our second event is the last week of regionals/districts.
We have a whole month to think and draw ideas. I already told them I want the switch for autonomous.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State

Last edited by chinckley : 25-02-2009 at 20:14.
  #24   Spotlight this post!  
Unread 25-02-2009, 20:20
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Programming Error

Quote:
Originally Posted by chinckley View Post
Not sure, which ones go in which slots?
I only really know programming and this year not even that.
Analogs in Slot 1&2, Digital I/O's in 4&6 and Digital source in 8, I believe.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #25   Spotlight this post!  
Unread 25-02-2009, 20:29
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Programming Error

Quote:
Originally Posted by billbo911 View Post
Analogs in Slot 1&2, Digital I/O's in 4&6 and Digital source in 8, I believe.
Thanks, I'll check in the morning.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
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
Code error causing robot to go into programming mode. MJD Programming 14 30-10-2007 14:21
CMU / RC / programming error N7UJJ Programming 3 18-02-2005 17:05
yet another programming error hawk_11 Programming 2 13-02-2005 15:57
programming error agenova Programming 1 20-02-2002 13:00


All times are GMT -5. The time now is 01: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