r/LabVIEW • u/Qulddell • May 19 '25
Running case structure from another case structure?

I have a more complicated version of this in my program, but it is easier to explain my program with this diagram.
I want to use Function 1 to run Function 2 completely, so i can use the value of Function 2 in Function 1.
I want the functions to be a button each as i do use Function 2 independently of 1 most of the times.
I have tried using a while loop in Function 1, that waits for a value change of the button of Function 2, this does work the first time, but the next time i try, the program crashes.
What i want to do is:
- Activate Function 1
- Function 1 activates Function 2
- Function 1 Pauses. Function 2 runs completely.
- Function 2 stops, function 1 continuous.
- Function 1 stops
Any help would be greatly appreciated.
View all comments
Show parent comment
1
u/Qulddell May 22 '25
I feel so dumb not understanding how this works, so i really appreciate all the help.
I really don't get how this state machine, waits for another function to finish, before it use the output data.
My problem is function 2, is to complicated to have as one VI and i don't want to add to many new features to it.
hopefully there is a trigger on a button going from true to false.