06-28-2022 09:06 AM
I have two inner while loops and I want too take an output variable from the first inner loop to another loop.
For example, in the attached file if I want to take the value of x and use it in other loop to obtain value of y.
Please, any suggestions to solve this problem.
Solved! Go to Solution.
06-28-2022 09:12 AM
Hi Omda,
@Omda2022 wrote:
I have two inner while loops and I want too take an output variable from the first inner loop to another loop.
Your problem description is not that good…
Your VI does exactly what you asked for: output a value from an inner loop and use that value in another loop!
Do you want to run both loops in parallel? Then you should "OBEY DATAFLOW!": right now you enforce the execution order by DATAFLOW.
There are techniques to exchange data between loops, like notifiers, queues, channel wires, local/global/shared variables, network communication, … (Not all of them are suitable for all purposes in the same way.)
General recommendation: You should learn to better describe your problem instead of focusing on just one (maybe broken) way to solve that problem.
06-28-2022 10:03 AM