Go to Post While you look at it as punishment, I look at it as a challenge. - Daniel_LaFleur [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 23-02-2012, 12:59
demons858 demons858 is offline
Registered User
FRC #0858 (Demons)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2005
Location: grand rapids, michigan
Posts: 10
demons858 is an unknown quantity at this point
Exclamation Buttons on Dashboard (please help)

Hello, I am a first year programmer for our robotics team (demons858) and I'm trying to make a custom dashboard. Really all I want to do with it is make it so we can chose what Autonomous mode we use without flashing the robot. Is there a way I can reference a Boleyn sequence with a button on the dashboard from another VI?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2012, 14:46
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Buttons on Dashboard (please help)

The robot can't read the Dashboard directly, but the Dashboard can send data to the robot. You'll have to open a UDP (or TCP) socket on the robot, and send to that socket from the Dashboard program.

It might be easier to use the Cypress PsoC I/O that the Driver Station and WPIlib routines already support. You don't have to have a physical switch; the I/O tab on the Driver Station gives you access to an array of emulated on/off switches and analog values.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2012, 15:43
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Buttons on Dashboard (please help)

If you do not have the cypress board working, you can always use the DIP switches that are under the IO tab on the driver station. Failing that, the throttle controls on each of the Attack 3 Joysticks make good autonomous selectors.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2012, 21:43
kentwedeking's Avatar
kentwedeking kentwedeking is offline
LabVIEW Zealot
FRC #0967
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Marion, IA
Posts: 3
kentwedeking is on a distinguished road
Re: Buttons on Dashboard (please help)

So what I tell teams who've asked me this question is that if you use the DIO buttons on the Drivers station, they can be read in your code using "WPI_Driver StationGet Digital Input.vi."

If you take the array out of, cast it to a number using a "Boolean Array to Numeric" method, and you then run that number into a case structure. After that, its Binary math on the 8 bit number you'd end up with (010). If you use just two switches, 00 could be Option 1, 01 could be option 2, 10 could be option 3, and 11 could be option 4 ....
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 11:20.

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