Go to Post With three robots, I was expecting better scores but I guess more robots means more penalties, not more points. - sanddrag [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
  #6   Spotlight this post!  
Unread 15-03-2009, 19:05
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: Programming toggle switches to DS for different autonomous routines?

You could possibly get by with a cheap switch read when the cRIO first boots, but I think a better solution takes just a few edits of the Basic template.

On your Basic diagram, open the Basic Get Mode VI. On its panel is an output called Robot Mode which wasn't connected as an output. When the template was made, I never checked to see what the DS behavior was, and assumed that Other would work fine. Since it doesn't, here is how to fix it.

On the subVI, right click on the icon in the upper right of the Basic Get Mode panel and Show the Connector. Click on one of the connector outputs, then click on the Robot Mode. Save the VI, Close, and on the Basic Robot Main, you now have access to the Robot Mode output. Wire this to the edge of the case so that in Other you can switch on it and you can read the switches only in Auto Disabled and set a global with the state of the switches.

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
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 18:06.

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