Go to Post If a kid was in FIRST and no one was around to see it, do they still get inspired? - Katie_UPS [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

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 15-03-2009, 17:42
Shivang1923 Shivang1923 is offline
I make robot go VROOM VROOM!
FRC #1923 (MidKnight Inventors)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: West Windsor, NJ
Posts: 38
Shivang1923 has a spectacular aura aboutShivang1923 has a spectacular aura about
Re: Programming toggle switches to DS for different autonomous routines?

Quote:
Originally Posted by grosh View Post
We have the Get SwitchVI in place now in "other""default", thanks Shivang1923. How did I get the selected autonomous mode to be read in the autonomous VI. We have found a few CD threads on this topic, but they are written for the advanced mode. We are using Basic mode. Is this possible in Basic or are we not finding the right threads?

Thanks
ok try something along these lines

i am assuming you guys changed the vi to match your button inputs
the output of the GetSwitchVI is a number
the number is counted in binary depending on the switch: so if the first switch is true, then the number is 1, if the second then it is 2 if first AND second then 3 if none then 0.

there is a global variable called robot data. If you have watched the tipjar videos from lvmastery.com, you would know how to place more 'data(for lack of the proper term =P)' into the global variable Robot Data. place just a number indicator into there.

in autonomous independent vi, unbundle the global, take the number (again, the videos from lvmastery tipjar will teach you this.) and wire it into a case structure. Then inside each of the cases, put what autonomous code you want running into it.
Reply With Quote
 


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
Programming Toggle Switches in Labview seanl Programming 1 16-02-2009 13:02
Multiple programs/autonomous routines galewind Programming 12 09-01-2004 22:25
Autonomous Routines Powers Rules/Strategy 15 10-04-2003 10:27
3 way toggle switch programming LeadRiccardoT Programming 3 17-02-2003 02:02
Wiring custom toggle switches into operator interface DanL Electrical 9 13-02-2002 17:13


All times are GMT -5. The time now is 20:26.

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