From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Iteration non sequencial with While Loop

I've a SubVi in while Loop. Iteration n+1 will execute when Iteration n finish.

Can I execute this SubVi in paralel (no sequencial)?

________

In Spanish:
Tengo una SubVi dentro de un bucle while. Pero este bucle actúa de forma secuencial. No se cargará la iteración n+1 hasta que la n acabe.

¿Cómo puedo hacer para que se ejecuten las iteraciones de forma no secuencial? Es decir, que no haya que espera a que acabe una para que se ejecute la siguiente.
0 Kudos
Message 1 of 2
(2,890 Views)
Hello,

it is not possible. The while loop works as follows: 1) execute the code inside 2) check the ternimation condition 3) depending on that, continues with the following iteration or exit from the while loop. So, it is not possible what you are asking for.

Maybe you have to use two while loops.

Regards

rusC
0 Kudos
Message 2 of 2
(2,873 Views)