View Single Post
  #2   Spotlight this post!  
Unread 17-04-2014, 20:06
Greg McKaskle Greg McKaskle is online now
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
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: Drop-Down for autonomous in dashboard

The menu control in LabVIEW displays strings, but its datatype is a numeric which starts at zero and counting up. So this is quite easy to send to the robot to select which action to take.

A slightly more complex form is used by the testing code. You can take the value of the drop-down and the property that returns the list of strings. Then you index the strings and write that to a SD variable. On the robot, you can wire the string directly to the case structure. Be careful that the strings match in case, spacing, etc.

Greg McKaskle
Reply With Quote