Are you talking about LabVIEW? If so, you can stop a running VI by calling the "Stop" function, located in the Application Control palette. Also, using the VI Server functions located in the same palette, you can open a reference to a VI and Abort it using the "Invoke Node" primitive.