Go to Post Never underestimate the ability of a team of high school students and engineers to break expensive things. - Alan Anderson [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 04-03-2013, 18:27
eruiz22 eruiz22 is offline
Registered User
FRC #4210
 
Join Date: Feb 2013
Location: South Gate
Posts: 29
eruiz22 is on a distinguished road
Why is my autonomous code still not working?

I posted about this code already.
I fixed it, yet our robot doesn't do anything when we enable autonomous. Teleop is working fine.

Is there still something wrong with the program?



Thanks!
Attached Thumbnails
Click image for larger version

Name:	Autonomous2.jpg
Views:	124
Size:	111.2 KB
ID:	14262  
Reply With Quote
  #2   Spotlight this post!  
Unread 04-03-2013, 22:53
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: Why is my autonomous code still not working?

The robot doesn't do anything? It doesn't even "twitch" the motors slightly when you enable Autonomous, or ten seconds later?

Are there any messages showing on the Driver Station diagnostic display that might point to a cause?
Reply With Quote
  #3   Spotlight this post!  
Unread 04-03-2013, 23:00
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,833
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: Why is my autonomous code still not working?

Maybe you enabled a Motor Safety in Begin.vi for each of these and you shouldn't have?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 05-03-2013, 13:52
eruiz22 eruiz22 is offline
Registered User
FRC #4210
 
Join Date: Feb 2013
Location: South Gate
Posts: 29
eruiz22 is on a distinguished road
Re: Why is my autonomous code still not working?

When I enable autonomous, the motors do not flash. They stay a solid orange.

I noticed that it says "autonomous disabled" under the Robot Global Data VI. Does that make a difference?

P.S I attached the errors that are shown on the Driver Station.


Thanks!
Attached Thumbnails
Click image for larger version

Name:	Robot Global Data.jpg
Views:	42
Size:	147.2 KB
ID:	14265  Click image for larger version

Name:	Driver Station Autonomous Enabled.jpg
Views:	51
Size:	172.1 KB
ID:	14266  
Reply With Quote
  #5   Spotlight this post!  
Unread 05-03-2013, 14:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,833
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: Why is my autonomous code still not working?

A solid orange status on the motor controller would mean that the code successfully opened the device.

The code error listed on your Driver Station probably means the name you are using for your Get in Autonomous Independent.vi does not match EXACTLY the name you Opened in Begin.vi.
I suggest that you
  1. Highlight then name box in Begin.vi
  2. Cntl-C to copy the name box
  3. Go to Autonomous Independent.vi
  4. Cntl-V to paste the name box
  5. Delete the previous name box
  6. wire in the name box you copied from Begin.vi
Quote:
Error -44007 occurred at an unidentified location
Possible reason(s):
FRC: The RefNum you are trying to Get does not exist in this RefNum Registry.

In the future, instead of taking a snapshot of the Driver Station Diagnostic window, it would be more complete if you highlighted all the errors in the Diagnostic window and cut/paste them into WordPad. The screen shot only got the top of the error and the scroll bar shows that there are a lot more messages that you haven't looked at.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-03-2013 at 14:47.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-03-2013, 14:55
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Why is my autonomous code still not working?

Here's two other issues you should resolve before your regional:

Your Driver Station Software is out of date, see R90. You can download the update here: http://joule.ni.com/nidu/cds/view/p/id/2263
The battery voltage needs to be displayed on the Driver Station. See R71 for how to set up the hardware to do that.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-03-2013, 17:41
team2830prgrmr team2830prgrmr is offline
Registered User
FRC #2830
 
Join Date: Jan 2013
Location: Milwaukee
Posts: 6
team2830prgrmr is an unknown quantity at this point
Re: Why is my autonomous code still not working?

The main reason is because those are "wait" functions, so instead of running the code for 10 seconds, its running it once, then moving on. What you want to do is remove the sequence structure, and put each "command" in its own for loop. Set a time delay for about 1ms, and set it to iterate 10000 times. You also want to check that that the refnums are the same as they are in the Begin.vi, down to captitalized/uncapitalized, and spacing. I don't know what to tell you about the autonomous disabled part, I know for a fact its supposed to default to disable in the Begin.vi, but if the framework got messed up somewhere else I couldn't be quite sure what to tell you.
__________________
Rapper. Poet. Photographer. LabView programmer. Ask me for the rest of the story...
Reply With Quote
  #8   Spotlight this post!  
Unread 17-03-2013, 21:15
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: Why is my autonomous code still not working?

Quote:
Originally Posted by team2830prgrmr View Post
The main reason is because those are "wait" functions, so instead of running the code for 10 seconds, its running it once, then moving on...
There's absolutely nothing wrong with the flat sequence structure being used this way. The use of wait functions in sequential frames of a flat sequence isn't likely to be "the main reason" for the problem. Given the -44007 error, it probably is a spelling mismatch in the refnum names, as Mark suggests.
Reply With Quote
  #9   Spotlight this post!  
Unread 18-03-2013, 14:04
eruiz22 eruiz22 is offline
Registered User
FRC #4210
 
Join Date: Feb 2013
Location: South Gate
Posts: 29
eruiz22 is on a distinguished road
Re: Why is my autonomous code still not working?

Thanks

I checked the name that I used in the begin.vi and I noticed that I wrote "SWING" and in the autonomous independent.vi I wrote "swing"

I have yet to deploy the code, so I was wondering if the capitalization made the difference?
Reply With Quote
  #10   Spotlight this post!  
Unread 18-03-2013, 14:33
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Why is my autonomous code still not working?

Quote:
Originally Posted by eruiz22 View Post
I have yet to deploy the code, so I was wondering if the capitalization made the difference?
Yes, it's case sensitive.
Reply With Quote
  #11   Spotlight this post!  
Unread 19-03-2013, 02:49
eruiz22 eruiz22 is offline
Registered User
FRC #4210
 
Join Date: Feb 2013
Location: South Gate
Posts: 29
eruiz22 is on a distinguished road
Re: Why is my autonomous code still not working?

That was the problem all along!
The name I was using for my Get in Autonomous Independent.vi did not match the name I Opened in Begin.vi.

Thank you all very much!
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:52.

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