Go to Post The problem with anecdotal evidence is that you never seem to get the whole anecdote. - Lea DeFoote [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 29-02-2012, 22:30
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Multiple Auto modes

Hi I have two different auto modes one for the middle hoop and one for the middle hoops. This is my first year with auto and this is my first year using labview. Could someone please help me with codeing how to recognize a on off switch on a digital i/o on the digital sidecar and how you implement it in code? Sorry if there is another thread on this topic but I've tried looking for it, I've googled it but no luck. Right now before I put the robot in the bag I put two of the tetrix on/off switches on digital ports 1 and 2. Any help would be greatly appreciated.

-Garten Haeska
Team 2861
Minnesota 10,000 Lakes Regional
__________________
"Sometimes the questions are

complicated but the answers are simple."

- Dr. Seuss
Reply With Quote
  #2   Spotlight this post!  
Unread 29-02-2012, 22:54
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: Multiple Auto modes

Another way of doing this is to use the digital input of the driver station program. Goto the I/O on DS program and you can set channels 1-8 are true or false. Think of it as a software version of hardware switches. These switches can then be read from your program.

Look in the default framework program in the Autonomous Independent. There is already a vi in there that checks the status of the switches. Attached is a portion of code that will take these inputs and convert them to a number. Wire this to a case structure to run the auto program you want.
Attached Images
File Type: bmp DS Input.bmp (175.8 KB, 56 views)
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #3   Spotlight this post!  
Unread 01-03-2012, 05:24
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Multiple Auto modes

a good thing to use also is the axis 3 on the joysticks (the knob at its base) if you run out of driver station input

But who would run out? (us)
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:10.

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