Go to Post You only get one first post. ;) - gvarndell [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 27-01-2010, 17:04
Must Be Drama Must Be Drama is offline
Registered User
no team
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Brooklyn
Posts: 62
Must Be Drama is an unknown quantity at this point
Re: Who Remembers Last Years Framework?

do i really have to open the stuff in the begin vi?
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2010, 19:22
Brandon_L Brandon_L is offline
Someone told me there was food here
AKA: Brandon Liatys
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Newark, NJ
Posts: 1,200
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Who Remembers Last Years Framework?

Im having the same issues as well, Im used to opening say a motor or joystick out of the loop, doing whatever in the loop, and closing outside it. This year you cant do that in the sub vi and in lost, but for testing purposes I was able to place some code that worked in the same case structure as the teleop sub vi and it worked but is that legal? If someone could get last years default would we beable to use that?
__________________
FRC 2495 - Hamilton West Robotics [2007-2014] - whats a..."hive mind"?
FRC 3929 - Atomic Dragons [2012-2013]
FRC 2180 - Zero Gravity [2017-]

Just trying to collect all the possible team colors
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2010, 21:53
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,517
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Who Remembers Last Years Framework?

You don't /have/ to open anything in the Begin.vi, however it only runs once at startup and is ideal to open everything in one easy to remember place.

The idea with this framework is to open a given motor in the begin and use the setref .vi to give it a name.

Then in teleop.vi, outside of the case statement there, use the getref vi with the correct name, wire it into the case statement to do whatever you need to do with it.

If you look at how they set up the arcade drive in the default project you'll get a good idea of how to do it.

The precise reason they changed it this year is to make it easier for teams to help others - there will no longer be confusion about which framework you're using. All you have to say is "labview" now and everyone who has used labview can help you figure it out. It will require relearning a bit if you used the basic framework last year, but the default project is a great starting point to see how to do it.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2010, 10:47
lon.bushweiler lon.bushweiler is offline
Registered User
FRC #0093
 
Join Date: Jan 2009
Location: Appleton, WI
Posts: 11
lon.bushweiler is an unknown quantity at this point
Re: Who Remembers Last Years Framework?

It sounds like you used the simple framework last year. The changes between last years advanced framework and this years are pretty subtle. I find their use of references really helps clean up the code.

If you have more specific questions, we are here to help.

Good luck.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2010, 11:30
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,795
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: Who Remembers Last Years Framework?

Quote:
Originally Posted by Must Be Drama View Post
do i really have to open the stuff in the begin vi?
The trouble with adding an Open/Close directly to Teleop is that in this framework we leave and reenter Teleop 50 times a second, so you'll be opening and closing your device really fast- more than 6,700 times during a single match, and probably as high as 10,000 times counting delays of game.

Last year's Basic Framework remained in the infinite Teleop loop, so the Opens and Closes outside the infinite loop only got executed once.
Autonomous was the same way, so your devices probably got Opened and Closed, maybe 2 times in a whole match.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2010, 15:14
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,563
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: Who Remembers Last Years Framework?

Quote:
Originally Posted by Mark McLeod View Post
The trouble with adding an Open/Close directly to Teleop is that in this framework we leave and reenter Teleop 50 times a second, so you'll be opening and closing your device really fast- more than 6,700 times during a single match, and probably as high as 10,000 times counting delays of game.
You can also do the opens in the init case in telop.vi, which is only called the first time telop.vi is called after being in a different mode. You can do the close in the stop case.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: Team 241: This Years Bot Lifting Last Years Bot Dantvman27 Robot Showcase 3 21-02-2007 07:04
Last years versus this years trans. ratios de_ Motors 4 12-01-2006 13:56
reminiscing...WHO REMEMBERS THIS GUY? archiver 2001 7 24-06-2002 00:24
Last years robot archiver 2000 2 24-06-2002 00:21


All times are GMT -5. The time now is 11:47.

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