Go to Post The great thing about FIRST is that there actually are 3,000 ways to win. Find yours, and leverage it. - Siri [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 16-02-2009, 17:21
Dipole-Dipole Dipole-Dipole is offline
Registered User
AKA: Random Joe
no team
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Elsewhere
Posts: 1
Dipole-Dipole is an unknown quantity at this point
Do we have to...

I was wondering if we had to create a separate VI for Autonomous Mode. Currently we're doing something rather akin to a case structure -I haven't been as involved with the programming much this past week as I've been filling in for our main electrician.

One of the other programmers and I were going through the supplied code when we realized that they were using separate VI's!!!! Once we had that realization past us the question popped up.

So, if somebody would be willing to answer this question that would be great.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2009, 20:40
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: Do we have to...

The advanced framework has two supported autonomous options -- iterative, and independent. The Basic framework simplifies things by supporting only the independent option.

The advantage of the independent option is that the communications code is told about your subVI/function well in advance, and it will spawn the subVI at the beginning of autonomous, and will abort the subVI at the end of autonomous. You write an infinite loop for all practical purposes.

The iterative option works more like teleop. The iterative VI gets called for each new packet, every 20ms. The iterative callback needs to keep state, update based on the time, and return waiting for the next packet to arrive.

Does this help?

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Have You Attended Multiple High Schools? Do They Have FIRST Teams? KathieK General Forum 25 08-01-2009 02:16
anybody have a schematic for air tanks? (was: i have a question) Pankowgears Pneumatics 8 07-02-2007 17:56
I have questions! Do you have answers? c-squared_2006 Off-Season Events 2 07-04-2005 16:10
We have a HQ! ahecht General Forum 22 14-02-2002 19:30


All times are GMT -5. The time now is 21:39.

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