07-22-2009 06:42 PM
Hi all,
I've been asked to add a Stop button feature to a vi that someone who is no longer with us wrote. They have written a 'for loop' thats functionality is to crunch some data and appends it to a file during each iteration of the loop. They have placed this inside an event structure. There is a start button that when pressed triggers the event containing this loop. The program takes a fairly long time to execute each iteration of the loop (its using serial communication to transfer some data, crunch it and then append to the save file). If fed the wrong file this can take a long time to run to completion. Stopping it causes other issues with resetting the devices it is communicating with.
I need to add a stop button to terminate the event at the completion of the next iteration of the for loop. Is there any way to pass the 'button pressed' information into the for loop inside the event once it has already been triggered? I have very limited experience with the event structure other than making some basic programs to test it out.
Cheers,
Alex
If this description is insufficient to describe the problem I can post a modified version of the .vi showing the basic idea of what they've done and what I would like to achieve. I am unable to post the actual .vi due to NDA issues.
Solved! Go to Solution.
07-22-2009 06:47 PM
you can right click your for loop and add a conditional terminal to it:
07-22-2009 06:52 PM
07-22-2009 06:59 PM
🙂 Thanks that worked perfectly once I sorted out how to add both events to the same case.
Cheers!