Go to Post And that's part of the game... The field is never reset! Muhahaha! - nighterfighter [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 12-03-2013, 13:58
eruiz22 eruiz22 is offline
Registered User
FRC #4210
 
Join Date: Feb 2013
Location: South Gate
Posts: 29
eruiz22 is on a distinguished road
How is an autonomous code suppose to look in the Begin.vi and Finish.vi?

I only have "Autonomous Enabled" under "Robot Mode" for the Begin.vi
Reply With Quote
  #2   Spotlight this post!  
Unread 12-03-2013, 15:31
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: How is an autonomous code suppose to look in the Begin.vi and Finish.vi?

Autonomous code goes in Autonomous Independent.vi, with nothing special required in Begin or Finish. Begin should open all the robot I/O resources and store them in the RefNum Registry as usual. (Finish can close them if you want to be picky about cleaning up, but under normal conditions it'll never be executed -- the robot just gets turned off.)
Reply With Quote
  #3   Spotlight this post!  
Unread 02-05-2013, 16:49
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,372
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: How is an autonomous code suppose to look in the Begin.vi and Finish.vi?

Quote:
Originally Posted by Alan Anderson View Post
....(Finish can close them if you want to be picky about cleaning up, but under normal conditions it'll never be executed -- the robot just gets turned off.)
I think I found the answer I was looking for.

I have been working on a offboard vision processing system. It runs on Linux and I want to have it shutdown before powering off the robot. I was hoping to have the Finish.vi run the vi that triggers the shutdown process automatically. Although, if the robot gets shut off before the Finish.vi gets called, then that scheme will not work.

So, any suggestions where to place a vi to shutdown the vision processor board automatically?
__________________
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
Reply With Quote
  #4   Spotlight this post!  
Unread 02-05-2013, 16:58
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,834
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: How is an autonomous code suppose to look in the Begin.vi and Finish.vi?

You need to decide upon a trigger for the shutdown.

If you know that you're in a match, you might shutdown at the end of Teleop when you reenter the Disabled state.
During practice the Disabled state won't be so predictable, and if your robot Disables for any reason during a match you'll be out of luck.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-05-2013 at 07:59.
Reply With Quote
  #5   Spotlight this post!  
Unread 03-05-2013, 07:02
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: How is an autonomous code suppose to look in the Begin.vi and Finish.vi?

If you can train your users to hit the Finish button on the panel, then Finish is a fine place to place the shutdown. But as the season progresses, that seems to become less and less common. I'd suggest putting it into multiple locations. If the HW doesn't have its own button that can be programmed for shutdown, you can certainly mount your own on near the robot breaker and have the cRIO monitor it. Ultimately, that seems the best bet for general use.

Greg McKaskle
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: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