|
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
|