LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ending a loop when a controller's value changes

Dear All !

 

I have a while loop with only 1 num. controller. When the user changes the value in it - in whatever way - , i would like the loop to end.

I couldn't find a way. I looked for something like a "ValueHasChangedPropertyNode" boolean, but found nothing. The only thing i could do is have a STOP button next to the control and after changing the value i have to press the STOP.

...Which i dont like.. please help, thank you,

Laszlo

 

0 Kudos
Message 1 of 4
(2,575 Views)

Hi Laszlo,

 

either you use an event structure with a "value change" event for that numeric control or a shift register keeping the value from last iteration and a simple "unequal" comparison...

 

This is pretty basic. Have you attended the free online courses on NI's website (academics section)?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,574 Views)

GerdW is right...

 

if you go into labviews examples and search event it will bring up a couple of examples of the event structure being used and how to use it

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 4
(2,564 Views)

Thank You very much. I haven't, i didnt know about it. I will, thank you for the advice.

Laszlo

0 Kudos
Message 4 of 4
(2,552 Views)