LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to close program via RS232

Solved!
Go to solution

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?

0 Kudos
Message 1 of 9
(3,140 Views)

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.

 

err.PNG

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 9
(3,130 Views)

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.

Download All
0 Kudos
Message 3 of 9
(3,118 Views)

Just OR in the error cluster status then.

 

err.PNG

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 9
(3,099 Views)

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.

0 Kudos
Message 5 of 9
(3,091 Views)

What is this all about?

 

WTF.PNG

 

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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 9
(3,086 Views)

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?

0 Kudos
Message 7 of 9
(3,076 Views)
Solution
Accepted by topic author safix

It will work better if you do it like this.

 

Capture.PNG

 

Sorry for the late responce, you cought me at the end of my work day.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 8 of 9
(2,989 Views)

Thank you very much RTSLVU! 🙂

0 Kudos
Message 9 of 9
(2,952 Views)