LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop and dialog

Solved!
Go to solution

Hello:)

Kind of new to labview. Please see attached photos:

mo14_0-1604522427357.png

mo14_1-1604522529598.png

 

I want to stop the program, after i have pressed "Ja" on my two button dialog, and show the text "HA DET BRA" as shown in the case structure.

 

I have tried this

mo14_2-1604522737794.png

But it doesn't work.

 

 

Could anyone help me?

 

0 Kudos
Message 1 of 6
(1,267 Views)

Hi mo,

 


@mo14 wrote:

 I have tried this

But it doesn't work.

Could anyone help me?


Did you read the errors when you try to run your VI?

 

You cannot connect two data sources by wire (button and Dialog function): when you want to stop the VI after dialog OR stop button then you should use an OR function...

 

You also should learn about using tunnels: they require a data value when not set to "default if unwired"!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,260 Views)
Solution
Accepted by topic author mo14
Use the "or" function. If you press stop or display your HA DET BRA dialog, stop the loop.
Message 3 of 6
(1,237 Views)

Hello!

It worked:)

Was it like this you meant? 

mo14_0-1604573483653.png

 

0 Kudos
Message 4 of 6
(1,205 Views)

@mo14 wrote:

Hello!

It worked:)

Was it like this you meant? 

 

 


Yes, that should work. Do you understand why? If you activate the Light bulb and run it in highlight mode you'll get more info as to how/why.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 6
(1,201 Views)

I think so,

When "Ønske button" is false, the false case structure is activated, the OR function gets 2 false, so the stop loop wont be active.

 

If i press the button, the TRUE case structure gets active-> the pop up dialoge comes up, if i press "JA", the two button dialog gets an active output.

This means the True case with the two button dialog becomes active, AND the OR will be active from this. So the program stops.

 

Can you explain in more detail if I've missed something?

Thanks:)

0 Kudos
Message 6 of 6
(1,198 Views)