Go to Post "Wow, smells like... physics" - Anna B. [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 13-02-2010, 13:15
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,754
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: global variables and autonomous independent

I think you are wanting to use DS switches to tell the robot what part of the field it is on.

If this is correct, you can read the DS I/O as many times as you like. And it can be stored in a global if that is helpful.

If you only want this info in the autonomous code, the sample code already reads the switch positions and the slider positions on the left. You can use these to tell the robot the field location.

To set the switches, you can either connect the I/O board and attach physical switches using the breadboard or another breakout, or you can leave the I/O board detached and use virtual switches and values onscreen in the I/O tab.

Greg McKaskle
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
Autonomous Independent Code Issue Watchdog not fed pilum40 FRC Control System 0 11-02-2010 12:00
Using Sensors in Autonomous Independent Felipe Sagui NI LabVIEW 2 27-01-2009 17:25
Making global variables in LabVIEW. Joshamuffin National Instruments LabVIEW and Data Acquisition 1 19-01-2009 13:35
HELP!!! Counters, global variables, and the like danielkitchener Programming 2 23-02-2004 23:53
Global Variables, anyone? Darkman_X000 Programming 3 05-02-2004 22:11


All times are GMT -5. The time now is 22:08.

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