LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop button reference

Hi, I have a VI with several case-structures and while-loops and nested while loops ... and ONE stop-button. i want to stop the loops with this button. how do i do that?
i know that i could do it somehow with a lokal variable and references to it, that are connectet with the stop-terminals. i attached a small screenshot where you can see how i tried it, its not working ("Wert" = "value").

Johannes, Grundig, Germany
0 Kudos
Message 1 of 4
(3,925 Views)
Your problem is due to the mechanical action of your stop button (right clic on the button) which is not the good one.
Change it to "switch" (first row) instead of "latch".


Hélène.
0 Kudos
Message 2 of 4
(3,925 Views)
Hello Johannes,

you are using a Global "stopp" button. So just use this
global in every instance (copy and paste!). Or you can create a Stop-button control at the front panel and use it with some local variables (context->create->local).

See example pic: control is in the upper left corner, several locals all over...
Best regards
Gerd
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(3,925 Views)
It looks like you have the error out wired to the conditional terminal instead of the value. I will attach a VI that shows the way to stop different loops with property nodes and local variables.
0 Kudos
Message 4 of 4
(3,925 Views)