LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Performing multiple tasks with a single button press

When I press a button one task should start and after the first task ends the second task should begin. How can i do this.
0 Kudos
Message 1 of 2
(2,580 Views)
Assuming that you put the tasks inside a case structure that's wired to the Boolean or are using an event structure, connect the two subVIs by error in/out clusters on their front panels. If you don't want to use subVIs, use a sequence structure with the tasks in separate sequences (this can result in ugly code though). A much more sophisticated method would be to use a state machine.
0 Kudos
Message 2 of 2
(2,580 Views)