The two button dialog function you are probably using has a boolean output terminal to indicate which button was pushed. You'll need to connect this to somthing to keep your program from running until it gets it value from the dialog. This forces dataflow dependency.
Even if you don't need the value, you can connect it to the border of the case structure holding the function and just let it stop there. This would be a good time th use "Default if Unwired" option on the tunnel it creates on the structure.
Ed

Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.