05-29-2013 08:01 AM
Hi Miki,
I think it really might be a better idea to repost your code with the event structure you added. Events can be tricky when encountered first and it might be much easier to troubleshoot with the code attached 😉
05-29-2013 09:50 AM
Thanks for the response Jano! Here is my code. If you cannot use a code without subVI's, I will attach them too.
05-29-2013 10:19 AM
Hi,
I looked through your code. Basically - when you hit the "Stop The Program", you check for "Stop Reading Value" and get into an idle loop. To simplify things, I would suggest to try the code like this 😉 Also, feel free to use the value 0 for the timeout - anyway rest of your code will be timing the loop.
05-29-2013 12:34 PM
With your code my program is working, but when I stop the program, it doesn't show the message from the dialogue. Do you know what may be the problem?
05-29-2013 12:40 PM
If you press the normal stop button, the event will not be triggered. What you can do instead of the OR is to add the stop button:value change to the event case you already have written for the stop button in the cluster. Then either button changing values will have the same effect.
05-29-2013 12:55 PM
I almost succeeded. I made a two button dialogue with a message "Are you sure you want to continue?", but program stops working both on Yes and No. How can I make the program to continue working when I press No button?Here is my code again.
05-29-2013 02:18 PM - edited 05-29-2013 02:19 PM
I think this is actually what you want.
05-29-2013 03:11 PM
Almost perfect! There is one thing that I do not understand. When I press the stop button,dialogue occurs,then I click No .After this, I press the stop button one more time and then Yes button, but program doesn't stop totaly,only aquisition, so I must press the stop button one more time to completely stop the program.Do you have any idea why this occurs?