03-10-2017 02:45 AM
I am wondering if in labview can program a single button to exicute a series of tasks?
Example : push button 3
Robot drIves forward x distance robot drives back x distance
And if it is possible how would I do it. Thanks for the help
03-10-2017 07:48 AM - edited 03-10-2017 08:00 AM
In the
Autonomous vi there is base code that shows you how to sequence through driving commands.
Assuming you want to use this code in Teleop I would copy this code and put it in a case structure and connected a joystick button to the selector.
This example uses mechanum control so you will need to set the Drive vis for your type of drive.
To select the joystick button index go to the driver station, click on the usb tab and press the button you want to use. Then count from the top left down starting at zero. When you reach the on LED that is the Button Index you use.
Reply if you still have questions
Hope this helps.