LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

one boolian button skips more while-loops

Hi everyone!
 
I want one single Boolian Button to skip more than one while-loop in different seqences of a Seqence Structure.
 
I already tried local variables, but it doesn't work.
 
Have you any idea??
 
thanks for your help!
 
 
Clemens Zeiner
0 Kudos
Message 1 of 4
(2,797 Views)
Hello Clemens,

you better attach an example vi to describe your problem!

But:
If you use local variables of that boolean button you have use a "mechanical" switch-mode instead of latch. Then you have to emulate this latching on your own by setting the boolean back to your default value.
Or you use it as enable/disable feature, once the button is pressed it only allows all remaining while loops to iterate only once...

Best regards,
GerdW


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

I like using shift registers to pass booleans amouug nested threads it is much more reliable than buttons and locals who's state is less deterministic and managable.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 3 of 4
(2,790 Views)
I am really not sure if this is right, but here is an example VI that shows how to select between using one set of code and another.  Is this what you are looking for?  I changed the mechanical action of the Skip Ahead button.  Right-click and select mechanical action from the menu to change the mechanical action.

We could use a little more information if it is not.

Thanks,
Bob Young

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