04-12-2013 09:39 PM
I have a "Prompt User for Input" in the middle loop of a three loop vi.
I would like the loop to stop when the user presses "Test 2" on the front panel then checks "input" on the prompt.
I'm trying to do this using a "User Event". Can anyone tell me what I"m doing wrong?
Thanks.
Solved! Go to Solution.
04-12-2013 09:48 PM
04-12-2013 09:57 PM
I tried what you suggested, but it didn't stop the application.
04-12-2013 10:10 PM - edited 04-12-2013 10:16 PM
you said to stop the middle loop and that event has that command to stop your 2nd loop by going to the stop case statement of the 2nd loop?
04-12-2013 10:16 PM
When the user checks the "input box" in case "Two" I would like to stop the entire application. The way I have it now only the bottom two loops are stopping. For some reason my user event isnt working.
04-12-2013 10:28 PM - edited 04-12-2013 10:36 PM
@chuck72352 wrote:
When the user checks the "input box" in case "Two" I would like to stop the entire application. The way I have it now only the bottom two loops are stopping. For some reason my user event isnt working.
it's working fine, try the implementation above...it will stop the whole application, but if it is dependent on the input box being checked, do not wire a 'true' coonstant to the stop...send a dynamic event back to the top loop stop case
04-12-2013 10:35 PM
Yes it should stop only if the input box is checked. Im just not sure how to send a dynamic variable back. I believe what I have to do is make my "User Stop" variable dynamic somehow.
04-12-2013 10:37 PM - edited 04-12-2013 10:46 PM
add a dynamic stop to the stop event case structure in upper loop by editing the stop event case and add event, dynamic <stop> user event_value change......and you can leave out the stop command in the 2nd test event case structure, wire a false constant to the stop. please mark as solution and kudos those who have helped
04-12-2013 11:19 PM
I got it to work. See attached. I had the wrong terminal attached on the User Prompt.
Thank you.