FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Firing order of pistons

Hello

I would like write a labview program that when I press one of the buttons on the joystick, the following happens in this order

1) solenoid #1 is activated while solenoid #2 is not for 1 second

2) solenoid #1 is not activated while solenoid #2 is activated for 3 seconds

3) solenoid #1 is not activated while solenoid #2 is not not active until the button is pressed again

I would like the robot to be able to drive around while I am activating these pistons

Thank you

0 Kudos
Message 1 of 3
(3,499 Views)

Have you already tried writing this and ran into problems, or you don't know where to start?  Search the LabVIEW help and forums for "state machine" since that's the pattern you should use.

0 Kudos
Message 2 of 3
(2,495 Views)

Check out this document--> Application Design Patterns: State Machines

Also, I've attached some code that should get you started.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ben Sisney
FlexRIO V&V Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0 Kudos
Message 3 of 3
(2,495 Views)