About 356,000 results
Open links in new tab
  1. Passing data between two parallel while loops - NI Community

    Jul 27, 2018 · Use a Local Variable or a Global Variable. You only care about the latest data, so either of those will work just fine.

  2. Can 2 while loops work at the same time? - NI Community

    Nov 15, 2012 · 1)Assure proper initialization of the local first before using them anywhere in your VI. 2) Insure no two code sections write to a local variable at the same time. This is your responsibility. 3) reset the locals before exiting the VI.

  3. LabView: Pass value between while loops - Stack Overflow

    Mar 14, 2012 · The fastest method to get data from one loop is by using a local variable: There are several other ways to distribute your data, and locals might work for now, but you will want to move on if you scale to larger applications.

  4. sharing variables between concurrent while loops - NI …

    Jul 2, 2009 · I've tried ORing the control of one & the local variable control of the other into the While Loop Stop condition, but I've noticed that the local variable doesn't update the value of the variable that sits in the other loop...

  5. Stopping Parallel While Loops in LabVIEW with One Stop Button

    Nov 3, 2023 · You can stop multiple parallel While Loops with one stop button by passing the Boolean stop button value from your first loop's control to all of the other loops using a local variable for each additional loop.

  6. Writing to One Front Panel Object from Two Block Diagram …

    Apr 1, 2025 · You can use a local variable to update a single front panel indicator from more than one location on the block diagram. For example, if you have a VI with two While Loops, you can update a front panel indicator to display which loop is currently executing.

  7. Labview 2012 Passing Dynamic data into/out of a while loop

    Oct 6, 2015 · If you want to pass the data earlier (while the loop is running) you have to choose easiest option: Use queue (is the most common and well working). I can elaborate how this one work in practise if you want, or just try to run an example from LabVIEW help.

  8. LabVIEW: How to exchange lots of variables between loops?

    Jul 2, 2014 · The quick and dirty way to do this is to write each value to an indicator in the producer loop - these indicators can be hidden offscreen, or in a page of a tab control, if you don't want to see them - and read a local variable of each one in the consumer loop.

  9. Build and Configure a While Loop in LabVIEW - NI

    Oct 26, 2023 · A While Loop is a structure you use to execute a block of code repeatedly until a given condition is met. When the VI runs, the code inside the While Loop executes, and then the conditional terminal is evaluated. This tutorial walks you through how to build and configure a While Loop to LabVIEW.

  10. Parallel while loops : r/LabVIEW - Reddit

    Sep 24, 2021 · Running multiple while loops in parallel with each other is a pretty common practice, especially for simple applications such as this. Now if you need to control the timing of a certain operation between multiple loops then you'll have to get more creative.

Refresh