04-08-2015 05:00 PM
Hi,
How can I end the program after I press OK in Prompt user info? I use serial line(RS232) and this part as attachment is subVI, the main program is in while loop. But I don't know how can i end the program after error=true? Is any block for that?
Solved! Go to Solution.
04-08-2015 05:11 PM - edited 04-08-2015 05:14 PM
um... why don't you show your whole program?
Is your program running inside a While Loop?
You can connect the error cluster right to the Stop Condition terminal of a While Loop and the loop will stop if there is an error.
04-08-2015 05:23 PM - edited 04-08-2015 05:27 PM
I've tried this..., ok, but, I have another 2 conditions(boolean) for end of program.The first image is without loop....just indicator x=y? is led out... The second image is main program with while loop....but in this case, there is timeout error.
04-08-2015 05:29 PM
Just OR in the error cluster status then.
04-08-2015 05:35 PM - edited 04-08-2015 05:35 PM
wow, it looks well, but it's without message dialog, isn't it? I want to write text "wrong choice of ports" on output after error.
04-08-2015 05:37 PM - edited 04-08-2015 05:39 PM
What is this all about?
You have a case that when true compares the Boolean to a True constant and if equal turns on the LED indicator?
Talk about redundant code!
You need to stop right now and work through some basic LabVIEW tutorials.
But to answer your next question OR in the OK output of the Prompt User for Input Express VI instead then.
04-08-2015 06:02 PM
I see, thank you very much...:D
I know it was my stupid idea when i wanted keep true(boolean) and led out to main program...because i didn't know I am able to join error cluster straight to end of while loop..
So, I insert all to main program....just in this case that error=true it shows dialog otherwise it will continue without show?
04-09-2015 09:59 AM
It will work better if you do it like this.
Sorry for the late responce, you cought me at the end of my work day.
04-09-2015 04:47 PM
Thank you very much RTSLVU! 🙂